Django & South: Adding new field but DatabaseError occurs “table already exists”

后端 未结 3 1508
旧时难觅i
旧时难觅i 2021-02-06 17:55

In trying to add a new field to a preexisting Model/table, I get a DatabaseError with \'table already exists.\' I have run migrations before this one so I am a bit puzzled why a

3条回答
  •  情深已故
    2021-02-06 18:27

    I commented out the field, ran schemamigration, then migrate. Uncommented out the field, ran schemamigration, then migrate and it worked. Not sure what I was doing wrong.

提交回复
热议问题