primary key should not have default value

This commit is contained in:
Shridhar Patil 2019-01-11 17:51:06 +05:30
parent 61b7b1c0f4
commit 9d5a365f63
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ CREATE TABLE `tabDocPerm` (
DROP TABLE IF EXISTS `tabDocType`;
CREATE TABLE `tabDocType` (
`name` varchar(255) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL,
`creation` datetime(6) DEFAULT NULL,
`modified` datetime(6) DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,

View file

@ -104,7 +104,7 @@ create index on "tabDocPerm" ("parent");
DROP TABLE IF EXISTS "tabDocType";
CREATE TABLE "tabDocType" (
"name" varchar(255) NOT NULL DEFAULT '',
"name" varchar(255) NOT NULL,
"creation" timestamp(6) DEFAULT NULL,
"modified" timestamp(6) DEFAULT NULL,
"modified_by" varchar(255) DEFAULT NULL,