Skip to content

Commit

Permalink
Update 51d65f145c1f_create_prd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Dec 3, 2024
1 parent 4e8b471 commit c9ebe72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions alembic/versions/51d65f145c1f_create_prd.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ def upgrade() -> None:
)
op.create_table(
"user_prd",
sa.Column("user_id", sa.String(length=19), nullable=False),
sa.Column("device_hash", sa.String(length=255), nullable=False),
sa.Column("user_id", sa.String(length=19, collation="utf8mb4_general_ci"), nullable=False),
sa.Column("device_hash", sa.String(length=255, collation="utf8mb4_general_ci"), nullable=False),
sa.ForeignKeyConstraint(["device_hash"], ["prds.hash"], ondelete="CASCADE"),
sa.ForeignKeyConstraint(["user_id"], ["users.id"], ondelete="CASCADE"),
mysql_engine="InnoDB",
mysql_charset="utf8mb4",
mysql_collate="utf8mb4_general_ci",
)
# ### end Alembic commands ###

Expand Down

0 comments on commit c9ebe72

Please sign in to comment.