[Answer]-South migration making incorrect initial schemamigration

1đź‘Ť

âś…

--initial is not about detecting changes, you shouldn’t expect it to.

It takes the current state of the tables and exports them as create table statements to get your first migration off the ground such that on a new install, you simply run “python manage.py migrate” to build your tables from start to finish.

No matter how many times you run --initial, it will generate these migrations with full table output. Again, it is not about detecting anything – it simply outputs the current state of the tables and is intended to be used as the “intitial/first” migration.

Leave a comment