Skip to content

Commit

Permalink
update db tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxcutex committed Jan 31, 2021
1 parent 06668d0 commit a6a5ecc
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions migrations/versions/fd49af1e21e7_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
"""empty message
Revision ID: fd49af1e21e7
Revises: 4dbae139187c
Create Date: 2021-01-31 22:46:54.034056
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "fd49af1e21e7"
down_revision = "4dbae139187c"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"clients",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("is_deleted", sa.Boolean(), nullable=False),
sa.Column("created_at", sa.DateTime(), nullable=True),
sa.Column("updated_at", sa.DateTime(), nullable=True),
sa.Column("institution_name", sa.String(), nullable=False),
sa.Column("institution_url", sa.String(), nullable=True),
sa.Column("institution_city", sa.String(), nullable=False),
sa.Column("institution_country", sa.String(), nullable=False),
sa.Column("institution_size", sa.String(), nullable=True),
sa.Column(
"status",
sa.Enum("lead", "closed", "rejected", name="clientstatus"),
nullable=True,
),
sa.Column("start_date", sa.Date(), nullable=False),
sa.PrimaryKeyConstraint("id"),
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table("clients")
# ### end Alembic commands ###

0 comments on commit a6a5ecc

Please sign in to comment.