summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnderson Shindy Oki <[email protected]>2024-08-04 21:30:13 +0900
committerGitHub <[email protected]>2024-08-04 21:30:13 +0900
commite5edf6203cce098b09f4fb4ae89a5c9bd414cc3d (patch)
tree9f3b6d9a16c6aae975ef810b4e1ba219997ea7d0
parentcc82c01c88c2b396639658069a82450042e9759a (diff)
downloadbazarr-e5edf6203cce098b09f4fb4ae89a5c9bd414cc3d.tar.gz
bazarr-e5edf6203cce098b09f4fb4ae89a5c9bd414cc3d.zip
Fixed postgresql database migrations not applied (#2601)v1.4.4-beta.28
-rw-r--r--migrations/env.py2
-rw-r--r--migrations/versions/452dd0f0b578_.py4
-rw-r--r--migrations/versions/b183a2ac0dd1_.py (renamed from migrations/versions/b183a2ac0dd1)0
3 files changed, 2 insertions, 4 deletions
diff --git a/migrations/env.py b/migrations/env.py
index beddf9710..e591f1a9f 100644
--- a/migrations/env.py
+++ b/migrations/env.py
@@ -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()
diff --git a/migrations/versions/452dd0f0b578_.py b/migrations/versions/452dd0f0b578_.py
index 13e623988..a4e7b2966 100644
--- a/migrations/versions/452dd0f0b578_.py
+++ b/migrations/versions/452dd0f0b578_.py
@@ -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
diff --git a/migrations/versions/b183a2ac0dd1 b/migrations/versions/b183a2ac0dd1_.py
index 3a8c16339..3a8c16339 100644
--- a/migrations/versions/b183a2ac0dd1
+++ b/migrations/versions/b183a2ac0dd1_.py