-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4425 from creviera/issue-4251
Add first and last name to journalist table and web app
- Loading branch information
Showing
18 changed files
with
535 additions
and
78 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
securedrop/alembic/versions/a9fe328b053a_migrations_for_0_14_0.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Migrations for SecureDrop's 0.14.0 release | ||
Revision ID: a9fe328b053a | ||
Revises: b58139cfdc8c | ||
Create Date: 2019-05-21 20:23:30.005632 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a9fe328b053a' | ||
down_revision = 'b58139cfdc8c' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table('journalists', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('first_name', sa.String(length=255), nullable=True)) | ||
batch_op.add_column(sa.Column('last_name', sa.String(length=255), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table('journalists', schema=None) as batch_op: | ||
batch_op.drop_column('last_name') | ||
batch_op.drop_column('first_name') |
2 changes: 0 additions & 2 deletions
2
securedrop/alembic/versions/b58139cfdc8c_add_checksum_columns_revoke_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.