Skip to content

Commit

Permalink
Fixed postgresql database migrations not applied (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-oki authored Aug 4, 2024
1 parent cc82c01 commit e5edf62
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ def process_revision_directives(context, revision, directives):
elif bind.engine.name == 'postgresql':
bind.execute(text("SET CONSTRAINTS ALL IMMEDIATE;"))

bind.close()


if context.is_offline_mode():
run_migrations_offline()
Expand Down
4 changes: 2 additions & 2 deletions migrations/versions/452dd0f0b578_.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""empty message
Revision ID: 452dd0f0b578
Revises: 30f37e2e15e1
Revises: b183a2ac0dd1
Create Date: 2024-05-06 20:27:15.618027
"""
Expand All @@ -11,7 +11,7 @@

# revision identifiers, used by Alembic.
revision = '452dd0f0b578'
down_revision = '30f37e2e15e1'
down_revision = 'b183a2ac0dd1'
branch_labels = None
depends_on = None

Expand Down
File renamed without changes.

0 comments on commit e5edf62

Please sign in to comment.