diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-10 15:57:17 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-10 15:57:17 +0530 |
commit | 9bede43b4d1c905bc1b8b06f0ea2ec0358110c62 (patch) | |
tree | d964cdd6d9b7e20261667d96e6ec8618ec705180 /migrations/versions | |
parent | b5409433e1af5f3b93555403c08755411a28dc72 (diff) |
intiial migration script
Diffstat (limited to 'migrations/versions')
-rw-r--r-- | migrations/versions/02e90d95b9e8_.py | 39 | ||||
-rw-r--r-- | migrations/versions/__pycache__/02e90d95b9e8_.cpython-39.pyc | bin | 0 -> 1067 bytes |
2 files changed, 39 insertions, 0 deletions
diff --git a/migrations/versions/02e90d95b9e8_.py b/migrations/versions/02e90d95b9e8_.py new file mode 100644 index 0000000..c65e6ba --- /dev/null +++ b/migrations/versions/02e90d95b9e8_.py @@ -0,0 +1,39 @@ +"""empty message + +Revision ID: 02e90d95b9e8 +Revises: +Create Date: 2021-06-10 15:55:56.198381 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '02e90d95b9e8' +down_revision = None +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.create_table('users', + sa.Column('first_name', sa.String(), nullable=True), + sa.Column('last_name', sa.String(), nullable=True), + sa.Column('email', sa.String(length=120), nullable=False), + sa.Column('confirmation', sa.Boolean(), nullable=True), + sa.Column('paid', sa.Boolean(), nullable=True), + sa.Column('role', sa.String(), nullable=True), + sa.Column('team', sa.String(), nullable=True), + sa.Column('login_type', sa.String(), nullable=True), + sa.Column('_password', sa.String(), nullable=True), + sa.PrimaryKeyConstraint('email') + ) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_table('users') + # ### end Alembic commands ### diff --git a/migrations/versions/__pycache__/02e90d95b9e8_.cpython-39.pyc b/migrations/versions/__pycache__/02e90d95b9e8_.cpython-39.pyc Binary files differnew file mode 100644 index 0000000..50aed8a --- /dev/null +++ b/migrations/versions/__pycache__/02e90d95b9e8_.cpython-39.pyc |