-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving SQLA query generation (#421)
* Improving SQLA query generation * Fixing debug
- Loading branch information
1 parent
d7ea473
commit 0ca3f5e
Showing
5 changed files
with
62 additions
and
27 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
25 changes: 25 additions & 0 deletions
25
caravel/migrations/versions/f0fbf6129e13_adding_verbose_name_to_tablecolumn.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,25 @@ | ||
"""Adding verbose_name to tablecolumn | ||
Revision ID: f0fbf6129e13 | ||
Revises: c3a8f8611885 | ||
Create Date: 2016-05-01 12:21:18.331191 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'f0fbf6129e13' | ||
down_revision = 'c3a8f8611885' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
'table_columns', | ||
sa.Column('verbose_name', sa.String(length=1024), | ||
nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('table_columns', 'verbose_name') |
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