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.
added a password column to the user table
- Loading branch information
1 parent
00414d9
commit 4f1a0ef
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
airflow/migrations/versions/561833c1c74b_add_password_column_to_user.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,24 @@ | ||
"""add password column to user | ||
Revision ID: 561833c1c74b | ||
Revises: 40e67319e3a9 | ||
Create Date: 2015-11-30 06:51:25.872557 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '561833c1c74b' | ||
down_revision = '40e67319e3a9' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('user', sa.Column('password', sa.String(255))) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('user', 'password') |