-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task: Create migration (manually) and start to hack env.py
- Loading branch information
1 parent
6f8c003
commit c4532db
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""empty message | ||
Revision ID: 3b012868551d | ||
Revises: 3187a44ef222 | ||
Create Date: 2019-06-20 21:56:27.664585 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '3b012868551d' | ||
down_revision = '3187a44ef222' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
def upgrade(): | ||
op.add_column('individual', sa.Column( | ||
'telephone_2', sa.String(length=20), nullable=True)) | ||
op.add_column('individual', sa.Column( | ||
'telephone_3', sa.String(length=20), nullable=True)) | ||
|
||
def downgrade(): | ||
op.drop_column('individual', 'telephone_2') | ||
op.drop_column('individual', 'telephone_3') |