diff --git a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql index 140b0c15089d78ec6e1053e5bd11c17b067e6195..3b19ef2b2a2c3338aa7465c941cf5e21af0b6bec 100644 --- a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql +++ b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql @@ -479,6 +479,23 @@ update llx_stock_mouvement set batch = '000000' where batch = 'Undefined'; -- At end (higher risk of error) -- VMYSQL4.1 ALTER TABLE llx_c_type_resource CHANGE COLUMN rowid rowid integer NOT NULL AUTO_INCREMENT; + ALTER TABLE llx_product_batch ADD UNIQUE INDEX uk_product_batch (fk_product_stock, batch); +CREATE TABLE llx_oauth_token ( + rowid integer AUTO_INCREMENT PRIMARY KEY, + service varchar(36), + token text, + fk_user integer, + fk_adherent integer, + entity integer +)ENGINE=InnoDB; +CREATE TABLE llx_oauth_state ( + rowid integer AUTO_INCREMENT PRIMARY KEY, + service varchar(36), + state varchar(128), + fk_user integer, + fk_adherent integer, + entity integer +)ENGINE=InnoDB; diff --git a/htdocs/install/mysql/tables/llx_oauth_state.sql b/htdocs/install/mysql/tables/llx_oauth_state.sql index c6b9601fa6cecff2a48d1586b0848ee605c19787..92cae17ef077c52e935b4dde50f521b039b05e6e 100644 --- a/htdocs/install/mysql/tables/llx_oauth_state.sql +++ b/htdocs/install/mysql/tables/llx_oauth_state.sql @@ -22,4 +22,4 @@ CREATE TABLE llx_oauth_state ( fk_user integer, fk_adherent integer, entity integer -) ENGINE=InnoDB; \ No newline at end of file +)ENGINE=InnoDB; \ No newline at end of file diff --git a/htdocs/install/mysql/tables/llx_oauth_token.sql b/htdocs/install/mysql/tables/llx_oauth_token.sql index 64a905b795c42481a2228b0d045ad13ed503edbc..5dd5cd0507f6c42635c27ff4e30cc5391010cf10 100644 --- a/htdocs/install/mysql/tables/llx_oauth_token.sql +++ b/htdocs/install/mysql/tables/llx_oauth_token.sql @@ -22,4 +22,4 @@ CREATE TABLE llx_oauth_token ( fk_user integer, fk_adherent integer, entity integer -) ENGINE=InnoDB; \ No newline at end of file +)ENGINE=InnoDB; \ No newline at end of file