1、刚加了数据表,没有字段名name,却报错IntegrityError: (1364, "Field 'name' doesn't have a default value")
解决:ALTER TABLE django_content_type MODIFY COLUMN name character varying(50) NOT NULL DEFAULT 'not null'
1、刚加了数据表,没有字段名name,却报错IntegrityError: (1364, "Field 'name' doesn't have a default value")
解决:ALTER TABLE django_content_type MODIFY COLUMN name character varying(50) NOT NULL DEFAULT 'not null'