EuroPython / djep

EuroPython 2014 conference software
https://ep2014.europython.eu/
BSD 3-Clause "New" or "Revised" License
36 stars 18 forks source link

Can't run initial migrations on postgres #183

Closed topotropic closed 10 years ago

topotropic commented 10 years ago

I tried to set up the db with postgres but got stuck with the following error:

Running migrations for accounts:
 - Migrating forwards to 0017_auto__del_stafflistplugin__add_userlistplugin.
 > accounts:0013_auto
FATAL ERROR - The following SQL query failed: ALTER TABLE "accounts_profile_trainings" ADD CONSTRAINT "session_id_refs_id_eda7f228" FOREIGN KEY ("session_id") REFERENCES "schedule_session" ("id") DEFERRABLE INITIALLY DEFERRED;
The error was: relation "schedule_session" does not exist

Error in migration: accounts:0013_auto
DatabaseError: relation "schedule_session" does not exist
MarkusH commented 10 years ago

As a workaround, try to run the migrations for pyconde.schedule explicitly and for pyconde.accounts afterwards.

Basically the accounts migration 0013 lacks a dependency to a schedule migration.