Prepare database to store country int accounting_system table

This commit is contained in:
Laurent Destailleur 2017-10-23 18:56:09 +02:00
parent a4b152ff1b
commit f083ac5e6b
2 changed files with 3 additions and 0 deletions

View File

@ -365,6 +365,8 @@ UPDATE llx_const set name = 'ONLINE_PAYMENT_CSS_URL' where name = 'PAYPAL_CS
UPDATE llx_const set name = 'ONLINE_PAYMENT_NEWFORMTEXT' where name = 'PAYPAL_NEWFORMTEXT';
UPDATE llx_const set name = 'ONLINE_PAYMENT_LOGO' where name = 'PAYPAL_LOGO';
ALTER TABLE llx_accounting_system ADD COLUMN fk_country integer;
UPDATE llx_accounting_account SET pcg_type = 'INCOME' where pcg_type = 'PROD';
UPDATE llx_accounting_account SET pcg_type = 'EXPENSE' where pcg_type = 'CHARGE';
UPDATE llx_accounting_account SET pcg_type = 'INCOME' where pcg_type = 'VENTAS_E_INGRESOS';

View File

@ -21,6 +21,7 @@
create table llx_accounting_system
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_country integer,
pcg_version varchar(32) NOT NULL,
label varchar(128) NOT NULL,
active smallint DEFAULT 0