From a0559a267b317c41a425423edd13566f05231e24 Mon Sep 17 00:00:00 2001 From: deathmeat Date: Thu, 26 Apr 2007 20:58:23 +0000 Subject: [PATCH] Added Sequence update statements which Michael forgot to insert :( --- migration/316-trunk/009_fix_bug_1707995.sql | 10 +++++++++- migration/316-trunk/010_add_feature_1708139.sql | 8 ++++++++ migration/316-trunk/postgresql/009_fix_bug_1707995.sql | 10 +++++++++- .../316-trunk/postgresql/010_add_feature_1708139.sql | 8 ++++++++ 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/migration/316-trunk/009_fix_bug_1707995.sql b/migration/316-trunk/009_fix_bug_1707995.sql index 82972d6190..6b8fd0729e 100644 --- a/migration/316-trunk/009_fix_bug_1707995.sql +++ b/migration/316-trunk/009_fix_bug_1707995.sql @@ -9,4 +9,12 @@ INSERT INTO AD_VAL_RULE (ad_val_rule_id, ad_client_id, ad_org_id, isactive, crea UPDATE AD_COLUMN set ad_val_rule_id = 271 where ad_column_id = 2204; -COMMIT; \ No newline at end of file +COMMIT; + +UPDATE AD_SEQUENCE + SET currentnextsys = (SELECT MAX (ad_val_rule_id) + 1 + FROM AD_VAL_RULE + WHERE ad_val_rule_id < 1000000) + WHERE NAME = 'AD_Val_Rule'; + +COMMIT; diff --git a/migration/316-trunk/010_add_feature_1708139.sql b/migration/316-trunk/010_add_feature_1708139.sql index d962115115..ab4d24b5a1 100644 --- a/migration/316-trunk/010_add_feature_1708139.sql +++ b/migration/316-trunk/010_add_feature_1708139.sql @@ -8,3 +8,11 @@ INSERT INTO AD_REF_LIST 9, 'Ending in 9/5', 'The price ends in either a 5 or 9 whole unit',155,NULL,NULL,'D'); COMMIT; + +UPDATE AD_SEQUENCE + SET currentnextsys = (SELECT MAX (ad_ref_list_id) + 1 + FROM AD_REF_LIST + WHERE ad_ref_list_id < 1000000) + WHERE NAME = 'AD_Ref_List'; + +COMMIT; diff --git a/migration/316-trunk/postgresql/009_fix_bug_1707995.sql b/migration/316-trunk/postgresql/009_fix_bug_1707995.sql index 6d3a1dd74e..c024c052bc 100644 --- a/migration/316-trunk/postgresql/009_fix_bug_1707995.sql +++ b/migration/316-trunk/postgresql/009_fix_bug_1707995.sql @@ -9,4 +9,12 @@ INSERT INTO AD_VAL_RULE (ad_val_rule_id, ad_client_id, ad_org_id, isactive, crea UPDATE AD_COLUMN set ad_val_rule_id = 271 where ad_column_id = 2204; -COMMIT; \ No newline at end of file +COMMIT; + +UPDATE AD_SEQUENCE + SET currentnextsys = (SELECT MAX (ad_val_rule_id) + 1 + FROM AD_VAL_RULE + WHERE ad_val_rule_id < 1000000) + WHERE NAME = 'AD_Val_Rule'; + +COMMIT; diff --git a/migration/316-trunk/postgresql/010_add_feature_1708139.sql b/migration/316-trunk/postgresql/010_add_feature_1708139.sql index c0c7d604c3..f2c2407dd7 100644 --- a/migration/316-trunk/postgresql/010_add_feature_1708139.sql +++ b/migration/316-trunk/postgresql/010_add_feature_1708139.sql @@ -8,3 +8,11 @@ INSERT INTO AD_REF_LIST 9, 'Ending in 9/5', 'The price ends in either a 5 or 9 whole unit',155,NULL,NULL,'D'); COMMIT; + +UPDATE AD_SEQUENCE + SET currentnextsys = (SELECT MAX (ad_ref_list_id) + 1 + FROM AD_REF_LIST + WHERE ad_ref_list_id < 1000000) + WHERE NAME = 'AD_Ref_List'; + +COMMIT;