Django-DB-Migrations: cannot ALTER TABLE because it has pending trigger events

前端 未结 6 1389
梦毁少年i
梦毁少年i 2020-12-02 10:45

I want to remove null=True from a TextField:

-    footer=models.TextField(null=True, blank=True)
+    footer=models.TextField(blank=True, default=\'\')
         


        
6条回答
  •  悲哀的现实
    2020-12-02 11:22

    Another reason for this maybe because you try to set a column to NOT NULL when it actually already has NULL values.

提交回复
热议问题