diff --git a/htdocs/install/mysql/migration/19.0.0-20.0.0.sql b/htdocs/install/mysql/migration/19.0.0-20.0.0.sql index c9a280690a3..28e61371e66 100644 --- a/htdocs/install/mysql/migration/19.0.0-20.0.0.sql +++ b/htdocs/install/mysql/migration/19.0.0-20.0.0.sql @@ -159,6 +159,8 @@ ALTER TABLE llx_user_extrafields ADD UNIQUE INDEX uk_user_extrafields (fk_object ALTER TABLE llx_usergroup_extrafields DROP INDEX idx_usergroup_extrafields; ALTER TABLE llx_usergroup_extrafields ADD UNIQUE INDEX uk_usergroup_extrafields (fk_object); +ALTER TABLE llx_website ADD COLUMN name_template varchar(255) NULL; + UPDATE llx_categorie SET date_creation = tms, tms = tms WHERE date_creation IS NULL AND tms IS NOT NULL; ALTER TABLE llx_product_price ADD COLUMN price_label varchar(255) AFTER fk_user_author; @@ -204,4 +206,3 @@ ALTER TABLE llx_c_tva ADD COLUMN type_vat smallint NOT NULL DEFAULT 0 AFTER fk_p ALTER TABLE llx_categorie ADD COLUMN position integer DEFAULT 0 AFTER color; ALTER TABLE llx_product DROP COLUMN onportal; - diff --git a/htdocs/install/mysql/tables/llx_website-website.sql b/htdocs/install/mysql/tables/llx_website-website.sql index 8ac580919aa..7380fe678df 100644 --- a/htdocs/install/mysql/tables/llx_website-website.sql +++ b/htdocs/install/mysql/tables/llx_website-website.sql @@ -41,5 +41,6 @@ CREATE TABLE llx_website pageviews_month BIGINT UNSIGNED DEFAULT 0, -- increased by 1 at each page access, saved into pageviews_previous_month when on different month than lastaccess pageviews_total BIGINT UNSIGNED DEFAULT 0, -- increased by 1 at each page access, no reset tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - import_key varchar(14) -- import key + import_key varchar(14), -- import key + name_template varchar(255) NULL --name of template imported ) ENGINE=innodb;