mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
Fixed postgresql database migrations not applied (#2601)
This commit is contained in:
parent
cc82c01c88
commit
e5edf6203c
3 changed files with 2 additions and 4 deletions
|
@ -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…
Reference in a new issue