New: works on multi-currency
This commit is contained in:
parent
a4863ffa89
commit
55f5e26b85
22
htdocs/install/mysql/tables/llx_exchange_rates.key.sql
Normal file
22
htdocs/install/mysql/tables/llx_exchange_rates.key.sql
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
-- ===================================================================
|
||||||
|
-- Copyright (C) 2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
--
|
||||||
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
|
-- it under the terms of the GNU General Public License as published by
|
||||||
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
|
-- (at your option) any later version.
|
||||||
|
--
|
||||||
|
-- This program is distributed in the hope that it will be useful,
|
||||||
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-- GNU General Public License for more details.
|
||||||
|
--
|
||||||
|
-- You should have received a copy of the GNU General Public License
|
||||||
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
--
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
|
|
||||||
|
ALTER TABLE llx_exchange_rates ADD INDEX idx_exchange_rates_fk_currency (fk_currency);
|
||||||
|
|
||||||
|
ALTER TABLE llx_exchange_rates ADD CONSTRAINT fk_exchange_rates_fk_currency FOREIGN KEY (fk_currency) REFERENCES llx_c_currencies (code);
|
||||||
26
htdocs/install/mysql/tables/llx_exchange_rates.sql
Normal file
26
htdocs/install/mysql/tables/llx_exchange_rates.sql
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
-- ============================================================================
|
||||||
|
-- Copyright (C) 2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
--
|
||||||
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
|
-- it under the terms of the GNU General Public License as published by
|
||||||
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
|
-- (at your option) any later version.
|
||||||
|
--
|
||||||
|
-- This program is distributed in the hope that it will be useful,
|
||||||
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-- GNU General Public License for more details.
|
||||||
|
--
|
||||||
|
-- You should have received a copy of the GNU General Public License
|
||||||
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
--
|
||||||
|
-- ===========================================================================
|
||||||
|
|
||||||
|
create table llx_exchange_rates
|
||||||
|
(
|
||||||
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
fk_currency varchar(2) NOT NULL,
|
||||||
|
rates text NOT NULL,
|
||||||
|
date datetime,
|
||||||
|
|
||||||
|
)ENGINE=innodb;
|
||||||
Loading…
Reference in New Issue
Block a user