Commit 2e13a0c94b8110646dd53f9b078874e1c006e0bd
1 parent
7b74daf6
Exists in
master
and in
4 other branches
Corresponding migration file
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,28 @@ |
1 | +"""empty message | |
2 | + | |
3 | +Revision ID: 4d5e5e207063 | |
4 | +Revises: 6f7e51f380eb | |
5 | +Create Date: 2021-03-26 18:34:03.768661 | |
6 | + | |
7 | +""" | |
8 | +from alembic import op | |
9 | +import sqlalchemy as sa | |
10 | + | |
11 | + | |
12 | +# revision identifiers, used by Alembic. | |
13 | +revision = '4d5e5e207063' | |
14 | +down_revision = '6f7e51f380eb' | |
15 | +branch_labels = None | |
16 | +depends_on = None | |
17 | + | |
18 | + | |
19 | +def upgrade(): | |
20 | + # ### commands auto generated by Alembic - please adjust! ### | |
21 | + op.add_column('user', sa.Column('role', sa.Integer(), nullable=True)) | |
22 | + # ### end Alembic commands ### | |
23 | + | |
24 | + | |
25 | +def downgrade(): | |
26 | + # ### commands auto generated by Alembic - please adjust! ### | |
27 | + op.drop_column('user', 'role') | |
28 | + # ### end Alembic commands ### | ... | ... |