1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-22 07:42:32 +00:00

Fixed postgresql database migrations not applied (#2601)

This commit is contained in:
Anderson Shindy Oki 2024-08-04 21:30:13 +09:00 committed by GitHub
parent cc82c01c88
commit e5edf6203c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 4 deletions

View file

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

View file

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