mirror of https://github.com/JohnHammond/CTFd.git
Run formatter
parent
364273f1f1
commit
930da02231
|
@ -9,21 +9,23 @@ from alembic import op
|
||||||
|
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
# revision identifiers, used by Alembic.
|
||||||
revision = 'b37fb68807ea'
|
revision = "b37fb68807ea"
|
||||||
down_revision = '1093835a1051'
|
down_revision = "1093835a1051"
|
||||||
branch_labels = None
|
branch_labels = None
|
||||||
depends_on = None
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.drop_constraint(None, 'dynamic_challenge', type_='foreignkey')
|
op.drop_constraint(None, "dynamic_challenge", type_="foreignkey")
|
||||||
op.create_foreign_key(None, 'dynamic_challenge', 'challenges', ['id'], ['id'], ondelete='CASCADE')
|
op.create_foreign_key(
|
||||||
|
None, "dynamic_challenge", "challenges", ["id"], ["id"], ondelete="CASCADE"
|
||||||
|
)
|
||||||
# ### end Alembic commands ###
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.drop_constraint(None, 'dynamic_challenge', type_='foreignkey')
|
op.drop_constraint(None, "dynamic_challenge", type_="foreignkey")
|
||||||
op.create_foreign_key(None, 'dynamic_challenge', 'challenges', ['id'], ['id'])
|
op.create_foreign_key(None, "dynamic_challenge", "challenges", ["id"], ["id"])
|
||||||
# ### end Alembic commands ###
|
# ### end Alembic commands ###
|
||||||
|
|
Loading…
Reference in New Issue