Skip to content

Commit

Permalink
alembic: fix syntax issue for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva authored and jrcastro2 committed Jun 14, 2023
1 parent 66976bc commit c78bd0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def downgrade():
existing_type=sa.String(80),
type_=sa.Integer,
postgresql_using="role_id::integer",
nullable=False,
)
op.create_foreign_key(
op.f("fk_access_actionsroles_role_id_accounts_role"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ def upgrade():
existing_type=sa.Integer,
type_=sa.String(80),
postgresql_using="role_id::integer",
nullable=False,
)
op.create_foreign_key(
op.f("fk_access_actionsroles_role_id_accounts_role"),
"access_actionsroles",
"accounts_role",
["role_id"],
["id"],
ondelete="CASCADE",
ondelete="CASCADE"
)


Expand Down

0 comments on commit c78bd0b

Please sign in to comment.