mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-01 20:34:36 +01:00
Run formatter
This commit is contained in:
@@ -9,21 +9,23 @@ from alembic import op
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'b37fb68807ea'
|
||||
down_revision = '1093835a1051'
|
||||
revision = "b37fb68807ea"
|
||||
down_revision = "1093835a1051"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_constraint(None, 'dynamic_challenge', type_='foreignkey')
|
||||
op.create_foreign_key(None, 'dynamic_challenge', 'challenges', ['id'], ['id'], ondelete='CASCADE')
|
||||
op.drop_constraint(None, "dynamic_challenge", type_="foreignkey")
|
||||
op.create_foreign_key(
|
||||
None, "dynamic_challenge", "challenges", ["id"], ["id"], ondelete="CASCADE"
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_constraint(None, 'dynamic_challenge', type_='foreignkey')
|
||||
op.create_foreign_key(None, 'dynamic_challenge', 'challenges', ['id'], ['id'])
|
||||
op.drop_constraint(None, "dynamic_challenge", type_="foreignkey")
|
||||
op.create_foreign_key(None, "dynamic_challenge", "challenges", ["id"], ["id"])
|
||||
# ### end Alembic commands ###
|
||||
|
||||
Reference in New Issue
Block a user