diff --git a/html/admin/setup.php b/html/admin/setup.php index d7dd58c36..574c391b8 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -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(); } diff --git a/html/admin/sql/patch/upgrade18.sql b/html/admin/sql/patch/upgrade18.sql new file mode 100644 index 000000000..5f3e68e06 --- /dev/null +++ b/html/admin/sql/patch/upgrade18.sql @@ -0,0 +1,5 @@ +begin; +alter table parm_periode drop constraint parm_periode_p_start_key; + +update version set val=19; +commit; \ No newline at end of file