-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding extra options to deeper configure sqlalchemy
- Loading branch information
1 parent
f1830c3
commit 8898444
Showing
4 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
caravel/migrations/versions/867bf4f117f9_adding_extra_field_to_database_model.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,22 @@ | ||
"""Adding extra field to Database model | ||
Revision ID: 867bf4f117f9 | ||
Revises: fee7b758c130 | ||
Create Date: 2016-04-03 15:23:20.280841 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '867bf4f117f9' | ||
down_revision = 'fee7b758c130' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('dbs', sa.Column('extra', sa.Text(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('dbs', 'extra') |
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