Add tmsfield in multicurrency tables

This commit is contained in:
Laurent Destailleur 2024-10-12 18:24:14 +02:00
parent 235d23a2b2
commit f373da6474
3 changed files with 22 additions and 14 deletions

View file

@ -174,6 +174,12 @@ ALTER TABLE llx_societe_perentity MODIFY COLUMN accountancy_code_customer varcha
ALTER TABLE llx_societe_perentity MODIFY COLUMN accountancy_code_supplier varchar(32);
ALTER TABLE llx_multicurrency ADD COLUMN tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
ALTER TABLE llx_multicurrency_rate ADD COLUMN tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
-- Copy categories from llx_category_bank into llx_categorie
INSERT INTO llx_categorie (entity, fk_parent, label, type, description, color, position, visible, date_creation)

View file

@ -18,11 +18,12 @@
-- ========================================================================
CREATE TABLE llx_multicurrency
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
date_create datetime DEFAULT NULL,
code varchar(255) DEFAULT NULL,
name varchar(255) DEFAULT NULL,
entity integer DEFAULT 1,
fk_user integer DEFAULT NULL
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
date_create datetime DEFAULT NULL,
code varchar(255) DEFAULT NULL,
name varchar(255) DEFAULT NULL,
entity integer DEFAULT 1,
fk_user integer DEFAULT NULL,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=innodb;

View file

@ -18,11 +18,12 @@
-- ========================================================================
CREATE TABLE llx_multicurrency_rate
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
date_sync datetime DEFAULT NULL,
rate double NOT NULL DEFAULT 0,
rate_indirect double DEFAULT 0,
fk_multicurrency integer NOT NULL,
entity integer DEFAULT 1
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
date_sync datetime DEFAULT NULL,
rate double NOT NULL DEFAULT 0,
rate_indirect double DEFAULT 0,
fk_multicurrency integer NOT NULL,
entity integer DEFAULT 1,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=innodb;