Skip to content

Commit

Permalink
chore: update alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes1803 committed Dec 6, 2023
1 parent 3599dce commit 538e218
Showing 1 changed file with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""init alembic
"""init
Revision ID: 1ee3a6aebd1d
Revises:
Create Date: 2023-10-11 20:10:36.123774
Revision ID: 513886cb9fcd
Revises:
Create Date: 2023-12-06 11:45:15.814536
"""
from typing import Sequence, Union
Expand All @@ -11,7 +11,7 @@
from alembic import op

# revision identifiers, used by Alembic.
revision: str = "1ee3a6aebd1d"
revision: str = "513886cb9fcd"
down_revision: Union[str, None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
Expand All @@ -22,15 +22,6 @@ def upgrade() -> None:
op.create_table(
"user_account", sa.Column("id", sa.String(length=30), nullable=False), sa.PrimaryKeyConstraint("id")
)
op.create_table(
"venue_managers",
sa.Column("id", sa.String(length=30), nullable=False),
sa.ForeignKeyConstraint(
["id"],
["user_account.id"],
),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"venues",
sa.Column("id", sa.Integer(), nullable=False),
Expand All @@ -41,12 +32,12 @@ def upgrade() -> None:
sa.Column("state", sa.String(length=30), nullable=False),
sa.Column("phone", sa.Integer(), nullable=False),
sa.Column("website", sa.String(length=30), nullable=True),
sa.Column("image_link", sa.String(length=30), nullable=True),
sa.Column("image_link", sa.String(), nullable=True),
sa.Column("genres", sa.String(length=30), nullable=True),
sa.Column("manager_id", sa.String(length=30), nullable=False),
sa.ForeignKeyConstraint(
["manager_id"],
["venue_managers.id"],
["user_account.id"],
),
sa.PrimaryKeyConstraint("id"),
)
Expand All @@ -56,6 +47,5 @@ def upgrade() -> None:
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table("venues")
op.drop_table("venue_managers")
op.drop_table("user_account")
# ### end Alembic commands ###

0 comments on commit 538e218

Please sign in to comment.