forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow selection of dbs where csv can be uploaded to (apache#5393)
- Loading branch information
1 parent
73ec526
commit 7f8eaee
Showing
4 changed files
with
40 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""empty message | ||
Revision ID: 1d9e835a84f9 | ||
Revises: 3dda56f1c4c6 | ||
Create Date: 2018-07-16 18:04:07.764659 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1d9e835a84f9' | ||
down_revision = '3dda56f1c4c6' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.sql import expression | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
'dbs', | ||
sa.Column( | ||
'allow_csv_upload', | ||
sa.Boolean(), | ||
nullable=False, | ||
server_default=expression.true())) | ||
|
||
def downgrade(): | ||
op.drop_column('dbs', 'allow_csv_upload') | ||
|
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