Database upgrade
This commit is contained in:
parent
5037baf305
commit
8b8e45c521
2 changed files with 16 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ if ( !defined ("NOALYSS_PACKAGE_REPOSITORY")) {
|
|||
if ( ! defined ("SYSINFO_DISPLAY")) {
|
||||
define ("SYSINFO_DISPLAY",TRUE);
|
||||
}
|
||||
define ("DBVERSION",132);
|
||||
define ("DBVERSION",133);
|
||||
define ("MONO_DATABASE",25);
|
||||
define ("DBVERSIONREPO",18);
|
||||
define ('NOTFOUND','--not found--');
|
||||
|
|
|
|||
15
include/sql/patch/upgrade132.sql
Normal file
15
include/sql/patch/upgrade132.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
begin;
|
||||
insert into "parameter" (pr_id ) values ('MY_DEFAULT_ROUND_ERROR_DEB');
|
||||
insert into "parameter" (pr_id ) values ('MY_DEFAULT_ROUND_ERROR_CRED');
|
||||
drop view if exists v_all_card_currency;
|
||||
|
||||
create or replace view v_all_card_currency as
|
||||
select sum(oc_amount) as sum_oc_amount,sum(oc_vat_amount) as sum_oc_vat_amount,f_id,j_id
|
||||
from
|
||||
operation_currency
|
||||
join jrnx using (j_id)
|
||||
group by f_id,j_id;
|
||||
|
||||
commit ;
|
||||
insert into version (val,v_description) values (133,'Currency : default accounting for currency difference ');
|
||||
commit ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue