Skip to content

Commit

Permalink
Merge pull request Dolibarr#27057 from lamrani002/addColumnInwebsiteT…
Browse files Browse the repository at this point in the history
…able

New column in website table for stock name of template imported
  • Loading branch information
eldy authored Jan 18, 2024
2 parents ec31f00 + 859ab08 commit cf6148d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion htdocs/install/mysql/migration/19.0.0-20.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

3 changes: 2 additions & 1 deletion htdocs/install/mysql/tables/llx_website-website.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit cf6148d

Please sign in to comment.