31 lines
1.8 KiB
SQL
31 lines
1.8 KiB
SQL
-- upgrade
|
|
comment on table action is 'The different privileges';
|
|
comment on table attr_def is 'The available attributs for the cards';
|
|
comment on table attr_min is 'The minimum attributs for the cards';
|
|
comment on table attr_min is 'The value of attributs for the cards';
|
|
comment on table centralized is 'The centralized journal';
|
|
comment on table fiche is 'Cards';
|
|
comment on table fiche_def is 'Cards definition';
|
|
comment on table fiche_def_ref is 'Family Cards definition';
|
|
comment on table form is 'Forms';
|
|
comment on table form is 'Forms content';
|
|
comment on table jnt_fic_att_value is 'join between the card and the attribut definition';
|
|
comment on table jnt_fic_attr is 'join between the family card and the attribut definition';
|
|
comment on table jrn is 'Journal: content one line for a group of accountancy writing';
|
|
comment on table jrnx is 'Journal: content one line for each accountancy writing';
|
|
comment on table jrn_action is 'Possible action when we are in journal (menu)';
|
|
comment on table jrn_def is 'Definition of a journal, his properties';
|
|
comment on table jrn_rapt is 'Rapprochement between operation';
|
|
comment on table jrn_type is 'Type of journal (Sell, Buy, Financial...)';
|
|
comment on table parm_money is 'Currency conversion';
|
|
comment on table parm_periode is 'Periode definition';
|
|
comment on table stock_goods is 'About the goods';
|
|
comment on table tmp_pcmn is 'Plan comptable minimum normalisé';
|
|
comment on table tva_rate is 'Rate of vat';
|
|
create index x_jr_grpt_id on jrn (jr_grpt_id);
|
|
create index x_j_grpt on jrnx(j_grpt);
|
|
create index x_poste on jrnx(j_poste );delete from jrn_action where ja_name='Impression';
|
|
delete from fiche where f_id not in (select f_id from jnt_fic_att_value);
|
|
alter table jrn add j_pj int4;
|
|
alter table jrn add jr_opid int4;
|
|
upgrade version set val=4;
|