diff --git a/migrations/versions/4d5e5e207063_.py b/migrations/versions/4d5e5e207063_.py new file mode 100644 index 0000000..8cc9ac1 --- /dev/null +++ b/migrations/versions/4d5e5e207063_.py @@ -0,0 +1,28 @@ +"""empty message + +Revision ID: 4d5e5e207063 +Revises: 6f7e51f380eb +Create Date: 2021-03-26 18:34:03.768661 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '4d5e5e207063' +down_revision = '6f7e51f380eb' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('user', sa.Column('role', sa.Integer(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('user', 'role') + # ### end Alembic commands ### -- libgit2 0.21.2