Skip to content

Commit

Permalink
Fix AUTO_INCREMENT PRIMARY KEY does not need NOT NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 22, 2017
1 parent b3fb348 commit 1fe1cb9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions htdocs/install/mysql/migration/3.7.0-3.8.0.sql
Expand Up @@ -350,7 +350,7 @@ ALTER TABLE llx_projet ADD COLUMN opp_amount double(24,8) DEFAULT NULL;

-- Module AskPriceSupplier --
CREATE TABLE llx_askpricesupplier (
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
rowid integer AUTO_INCREMENT PRIMARY KEY,
ref varchar(30) NOT NULL,
entity integer NOT NULL DEFAULT '1',
ref_ext varchar(255) DEFAULT NULL,
Expand Down Expand Up @@ -389,7 +389,7 @@ CREATE TABLE llx_askpricesupplier (
) ENGINE=innodb;

CREATE TABLE llx_askpricesupplierdet (
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_askpricesupplier integer NOT NULL,
fk_parent_line integer DEFAULT NULL,
fk_product integer DEFAULT NULL,
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_supplier_proposal.sql
Expand Up @@ -16,7 +16,7 @@
-- ========================================================================

CREATE TABLE llx_supplier_proposal (
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
rowid integer AUTO_INCREMENT PRIMARY KEY,
ref varchar(30) NOT NULL,
entity integer NOT NULL DEFAULT 1,
ref_ext varchar(255) DEFAULT NULL,
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_supplier_proposaldet.sql
Expand Up @@ -16,7 +16,7 @@
-- ========================================================================

CREATE TABLE llx_supplier_proposaldet (
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_supplier_proposal integer NOT NULL,
fk_parent_line integer DEFAULT NULL,
fk_product integer DEFAULT NULL,
Expand Down

0 comments on commit 1fe1cb9

Please sign in to comment.