Add field and table in database & migration script
This commit is contained in:
parent
c56c228c7f
commit
a23994055a
@ -285,6 +285,22 @@ CREATE TABLE llx_expensereport_det
|
|||||||
ALTER TABLE llx_expensereport_det MODIFY COLUMN fk_projet integer NULL;
|
ALTER TABLE llx_expensereport_det MODIFY COLUMN fk_projet integer NULL;
|
||||||
ALTER TABLE llx_expensereport_det MODIFY COLUMN fk_c_tva integer NULL;
|
ALTER TABLE llx_expensereport_det MODIFY COLUMN fk_c_tva integer NULL;
|
||||||
|
|
||||||
|
create table llx_payment_expensereport
|
||||||
|
(
|
||||||
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
fk_expensereport integer,
|
||||||
|
datec datetime, -- date de creation
|
||||||
|
tms timestamp,
|
||||||
|
datep datetime, -- payment date
|
||||||
|
amount real DEFAULT 0,
|
||||||
|
fk_typepayment integer NOT NULL,
|
||||||
|
num_payment varchar(50),
|
||||||
|
note text,
|
||||||
|
fk_bank integer NOT NULL,
|
||||||
|
fk_user_creat integer, -- creation user
|
||||||
|
fk_user_modif integer -- last modification user
|
||||||
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE llx_projet ADD COLUMN budget_amount double(24,8);
|
ALTER TABLE llx_projet ADD COLUMN budget_amount double(24,8);
|
||||||
|
|
||||||
|
|||||||
33
htdocs/install/mysql/tables/llx_payment_expensereport.sql
Normal file
33
htdocs/install/mysql/tables/llx_payment_expensereport.sql
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
-- ===================================================================
|
||||||
|
-- Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
||||||
|
--
|
||||||
|
-- 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 3 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_payment_expensereport
|
||||||
|
(
|
||||||
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
fk_expensereport integer,
|
||||||
|
datec datetime, -- date de creation
|
||||||
|
tms timestamp,
|
||||||
|
datep datetime, -- payment date
|
||||||
|
amount real DEFAULT 0,
|
||||||
|
fk_typepayment integer NOT NULL,
|
||||||
|
num_payment varchar(50),
|
||||||
|
note text,
|
||||||
|
fk_bank integer NOT NULL,
|
||||||
|
fk_user_creat integer, -- creation user
|
||||||
|
fk_user_modif integer -- last modification user
|
||||||
|
)ENGINE=innodb;
|
||||||
Loading…
Reference in New Issue
Block a user