Definition at line 28 of file class_install_impdol.php.
install_impdol::install |
( |
|
$p_cn | ) |
|
Definition at line 31 of file class_install_impdol.php.
36 $p_cn->exec_sql(
"create schema impdol");
38 create table impdol.version (
39 v_id bigint primary key,
40 v_date date default now(),
44 $p_cn->exec_sql(
"insert into impdol.version(v_id,v_text) values ($1,$2)", array(1,
"Installation"));
47 CREATE TABLE impdol.import
52 i_date timestamp with time zone DEFAULT now(),
54 CONSTRAINT import_pkey PRIMARY KEY (i_id )
58 CREATE TABLE impdol.parameter_tva
60 pt_id serial NOT NULL,
62 pt_rate numeric(20,4) DEFAULT 0,
63 CONSTRAINT parameter_tva_pkey PRIMARY KEY (pt_id )
67 CREATE TABLE impdol.operation_tmp
69 o_id bigserial NOT NULL,
88 CONSTRAINT operation_tmp_pkey PRIMARY KEY (o_id ),
89 CONSTRAINT operation_tmp_i_id_fkey FOREIGN KEY (i_id)
90 REFERENCES impdol.import (i_id) MATCH SIMPLE
91 ON UPDATE CASCADE ON DELETE CASCADE
96 CREATE TABLE impdol.operation_transfer
98 ot_id serial NOT NULL,
101 CONSTRAINT operation_transfer_pkey PRIMARY KEY (ot_id ),
102 CONSTRAINT operation_transfer_j_id_fkey FOREIGN KEY (j_id)
103 REFERENCES jrnx (j_id) MATCH SIMPLE
104 ON UPDATE CASCADE ON DELETE CASCADE,
105 CONSTRAINT operation_transfer_o_id_fkey FOREIGN KEY (o_id)
106 REFERENCES impdol.operation_tmp (o_id) MATCH SIMPLE
107 ON UPDATE CASCADE ON DELETE CASCADE
113 COMMENT ON COLUMN impdol.operation_tmp.o_result IS 'result is T can be transferrable, N cannot be transferrable';
117 COMMENT ON COLUMN impdol.operation_tmp.o_type IS 'S = marchandise, serviceT = tiers (fournisseurs, client)'
124 print_r($e->getTraceAsString());
The documentation for this class was generated from the following file: