Fix migration 0001_initial double CREATE TYPE + port collision #25
Reference in New Issue
Block a user
Delete Branch "fix/migration-0001-double-enum-and-port-collision"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every clean database bootstrap has been failing with
DuplicateObjectError: type "world_visibility" already exists-- verified on a fresh, isolated Postgres container with 0 tables/0 types beforehand. Root cause: the enum types were created explicitly, then redeclared inline on their columns withoutcreate_type=False, so SQLAlchemy tried to create them a second time in the same transaction. Fixed both (world_visibility,asset_type). Also parameterized the compose file's host ports since they were hardcoded and colliding across concurrent agent workspaces even after the COMPOSE_PROJECT_NAME isolation fix.Verified: fresh container, 0 tables/types before,
alembic upgrade headcompletes cleanly, 5 tables + 2 types land correctly,alembic_versionstamped at head.