From fa772e4bb4070f1241d78f679da8516285ab0b29 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Fri, 16 Apr 2021 11:11:38 +0200 Subject: [PATCH] Update resource's db and migration with new models --- migrations/versions/c5743e70ac8b_.py | 28 ++++++++++++++++++++++++++++ resources/lesia-btp.sqlite | Bin 172032 -> 0 bytes 2 files changed, 28 insertions(+), 0 deletions(-) create mode 100644 migrations/versions/c5743e70ac8b_.py diff --git a/migrations/versions/c5743e70ac8b_.py b/migrations/versions/c5743e70ac8b_.py new file mode 100644 index 0000000..1abbf82 --- /dev/null +++ b/migrations/versions/c5743e70ac8b_.py @@ -0,0 +1,28 @@ +"""empty message + +Revision ID: c5743e70ac8b +Revises: 4d5e5e207063 +Create Date: 2021-04-15 16:48:32.103879 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'c5743e70ac8b' +down_revision = '4d5e5e207063' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('user', sa.Column('password_hash', sa.String(length=128), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('user', 'password_hash') + # ### end Alembic commands ### diff --git a/resources/lesia-btp.sqlite b/resources/lesia-btp.sqlite index 1822cd7..42a0c3c 100644 Binary files a/resources/lesia-btp.sqlite and b/resources/lesia-btp.sqlite differ -- libgit2 0.21.2