Merge pull request #27057 from lamrani002/addColumnInwebsiteTable

New column in website table for stock name of template imported
This commit is contained in:
Laurent Destailleur 2024-01-18 14:16:56 +01:00 committed by GitHub
commit cf6148dbf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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;