forked from apache/airflow
-
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.
Rename user table to users to avoid conflict with postgres
* Resolves issue 1083
- Loading branch information
1 parent
3813d51
commit ac4a7da
Showing
4 changed files
with
56 additions
and
3 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
airflow/migrations/versions/2e82aab8ef20_rename_user_table.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 @@ | ||
"""rename user table | ||
Revision ID: 2e82aab8ef20 | ||
Revises: 1968acfc09e3 | ||
Create Date: 2016-04-02 19:28:15.211915 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '2e82aab8ef20' | ||
down_revision = '1968acfc09e3' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.rename_table('user', 'users') | ||
|
||
|
||
def downgrade(): | ||
op.rename_table('users', 'user') | ||
|
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