Skip to content

Commit

Permalink
[#120] Fixed alembic revision with id 4400871fa852.
Browse files Browse the repository at this point in the history
  • Loading branch information
eoyilmaz committed Nov 28, 2024
1 parent d661679 commit 5f39d59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ script_location = alembic
# revision_environment = false

#sqlalchemy.url = sqlite:///%(here)s/stalker.db
sqlalchemy.url = postgresql://stalker_admin:stalker@localhost:5432/stalker
sqlalchemy.url = postgresql://stalker_admin:stalker@localhost:5432/stalker_imaj


# Logging configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def upgrade():
"""Upgrade the tables."""
# Update the Scenes.id to be a foreign key to Tasks.id
op.drop_constraint("Scenes_id_fkey", "Scenes", type_="foreignkey")
op.create_foreign_key("Scenes_id_fkey", "Scenes", "Tasks", "id", "id")
op.create_foreign_key("Scenes_id_fkey", "Scenes", "Tasks", ["id"], ["id"])

# Create a StatusList for Scenes
# Create a SimpleEntity for the StatusList
Expand Down Expand Up @@ -159,4 +159,4 @@ def downgrade():

# Update the Scenes.id to be a foreign key to Entities.id
op.drop_constraint("Scenes_id_fkey", "Scenes", type_="foreignkey")
op.create_foreign_key("Scenes_id_fkey", "Scenes", "Entities", "id", "id")
op.create_foreign_key("Scenes_id_fkey", "Scenes", "Entities", ["id"], ["id"])

0 comments on commit 5f39d59

Please sign in to comment.