Upgrade db to version 19

This commit is contained in:
sparkyx 2006-08-25 20:51:58 +00:00
parent 7dfcd3c10b
commit 363c0af02e
2 changed files with 11 additions and 0 deletions

View file

@ -475,6 +475,9 @@ if ( DEBUG=='false' ) ob_start();
$max=getDbValue($db,'select last_value from s_jnt_fic_att_value');
AlterSequence($db,'s_jnt_fic_att_value',$max+1);
} // version
if ( GetVersion($db) == 18 ) {
ExecuteScript($db,'sql/patch/upgrade18.sql');
} // version
if ( DEBUG == 'false') ob_end_clean();
}//for
@ -563,6 +566,9 @@ if (DEBUG == 'false' ) ob_start();
$max=getDbValue($db,'select last_value from s_jnt_fic_att_value');
AlterSequence($db,'s_jnt_fic_att_value',$max+1);
} // version
if ( GetVersion($db) == 18 ) {
ExecuteScript($db,'sql/patch/upgrade18.sql');
} // version
if ( DEBUG == 'false') ob_end_clean();
}

View file

@ -0,0 +1,5 @@
begin;
alter table parm_periode drop constraint parm_periode_p_start_key;
update version set val=19;
commit;