aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/02e90d95b9e8_.py
blob: 1c7d04cc0b0a7c141b41dba3083f4b2f43f03c4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""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 ###