Closed shimizukawa closed 2 years ago
Now it works.
This problem was caused by the fact that get_constraints
method not working with Redshift.
But it is now fixed in #90.
(.venv) @shimizukawa ➜ /workspaces/django-redshift-backend/examples/proj1 (feature/dj40 ✗) $ python manage.py sqlmigrate testapp 0002
--
-- Remove field parent from testchildmodel
--
ALTER TABLE "testapp_testchildmodel" DROP CONSTRAINT "testapp_testchildmod_parent_id_c460c524_fk_testapp_t";
ALTER TABLE "testapp_testchildmodel" DROP COLUMN "parent_id" CASCADE;
--
-- Remove field fk from testmodelwithmetakeys
--
ALTER TABLE "testapp_testmodelwithmetakeys" DROP CONSTRAINT "testapp_testmodelwit_fk_id_6f46321c_fk_testapp_t";
ALTER TABLE "testapp_testmodelwithmetakeys" DROP COLUMN "fk_id" CASCADE;
versions:
command
migration: 0011_auto_20160915_1639.py
traceback