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.
Allowing to specify schema for tables (apache#330)
* Allowing to specify schema for tables * Installed postgres and tested/fixed
- Loading branch information
1 parent
0a94b36
commit 5cadd67
Showing
4 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
caravel/migrations/versions/bb51420eaf83_add_schema_to_table_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 @@ | ||
"""add schema to table model | ||
Revision ID: bb51420eaf83 | ||
Revises: 867bf4f117f9 | ||
Create Date: 2016-04-11 22:41:06.185955 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'bb51420eaf83' | ||
down_revision = '867bf4f117f9' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('tables', sa.Column('schema', sa.String(length=256), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('tables', 'schema') |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
coveralls | ||
nose | ||
sphinx | ||
sphinx_bootstrap_theme | ||
sphinxcontrib.youtube |