Fixed postgresql database migrations not applied (#2601)

pull/2606/head v1.4.4-beta.28
Anderson Shindy Oki 3 months ago committed by GitHub
parent cc82c01c88
commit e5edf6203c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -110,8 +110,6 @@ def run_migrations_online():
elif bind.engine.name == 'postgresql': elif bind.engine.name == 'postgresql':
bind.execute(text("SET CONSTRAINTS ALL IMMEDIATE;")) bind.execute(text("SET CONSTRAINTS ALL IMMEDIATE;"))
bind.close()
if context.is_offline_mode(): if context.is_offline_mode():
run_migrations_offline() run_migrations_offline()

@ -1,7 +1,7 @@
"""empty message """empty message
Revision ID: 452dd0f0b578 Revision ID: 452dd0f0b578
Revises: 30f37e2e15e1 Revises: b183a2ac0dd1
Create Date: 2024-05-06 20:27:15.618027 Create Date: 2024-05-06 20:27:15.618027
""" """
@ -11,7 +11,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic. # revision identifiers, used by Alembic.
revision = '452dd0f0b578' revision = '452dd0f0b578'
down_revision = '30f37e2e15e1' down_revision = 'b183a2ac0dd1'
branch_labels = None branch_labels = None
depends_on = None depends_on = None

Loading…
Cancel
Save