task 4111 : correct & improve sql script
This commit is contained in:
parent
ff5fc35d50
commit
38fb7f1768
18 changed files with 1281 additions and 785 deletions
|
|
@ -17,7 +17,8 @@ CREATE TABLE parm_periode (
|
|||
p_start date NOT NULL,
|
||||
p_end date,
|
||||
p_exercice text DEFAULT to_char(now(), 'YYYY'::text) NOT NULL,
|
||||
p_closed boolean DEFAULT false
|
||||
p_closed boolean DEFAULT false,
|
||||
p_central boolean DEFAULT false
|
||||
);
|
||||
CREATE TABLE jrn_type (
|
||||
jrn_type_id character(3) NOT NULL,
|
||||
|
|
@ -171,9 +172,11 @@ CREATE TABLE jrn (
|
|||
jr_ech date,
|
||||
jr_rapt text,
|
||||
jr_valid boolean DEFAULT true,
|
||||
j_pj integer,
|
||||
jr_opid integer,
|
||||
jr_c_opid integer
|
||||
jr_c_opid integer,
|
||||
jr_pj oid,
|
||||
jr_pj_name text,
|
||||
jr_pj_type text
|
||||
);
|
||||
CREATE TABLE stock_goods (
|
||||
sg_id integer DEFAULT nextval('s_stock_goods'::text) NOT NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue