diff --git a/smp-webapp/src/main/smp-setup/database-scripts/migration from 4.2 to 5.0/oracle10g-4.2_to_5.0-step_01.sql b/smp-webapp/src/main/smp-setup/database-scripts/migration from 4.2 to 5.0/oracle10g-4.2_to_5.0-step_01.sql index a59e4438659bd97052dd08d1c17ccb0976ce258c..3216459f1c3b75a0ba838c69f9bc9dbe049b7796 100644 --- a/smp-webapp/src/main/smp-setup/database-scripts/migration from 4.2 to 5.0/oracle10g-4.2_to_5.0-step_01.sql +++ b/smp-webapp/src/main/smp-setup/database-scripts/migration from 4.2 to 5.0/oracle10g-4.2_to_5.0-step_01.sql @@ -59,14 +59,12 @@ alter table SMP_USER_AUD drop constraint FK2786r5minnkai3d22b191iiiq; ALTER TABLE SMP_USER RENAME TO BCK_USER; ALTER TABLE SMP_USER_AUD RENAME TO BCK_USER_AUD; - -- create new sequences create sequence SMP_CREDENTIAL_SEQ start with 1 increment by 1; create sequence SMP_DOCUMENT_SEQ start with 1 increment by 1; create sequence SMP_DOCUMENT_VERSION_SEQ start with 1 increment by 1; create sequence SMP_DOMAIN_MEMBER_SEQ start with 1 increment by 1; create sequence SMP_GROUP_MEMBER_SEQ start with 1 increment by 1; -create sequence SMP_GROUP_SEQ start with 1 increment by 1; create sequence SMP_RESOURCE_MEMBER_SEQ start with 1 increment by 1; -- set manual inserts in v2 script -start with 10 create sequence SMP_EXTENSION_SEQ start with 10 increment by 1; @@ -75,9 +73,12 @@ create sequence SMP_SUBRESOURCE_DEF_SEQ start with 10 increment by 1; -- set SMP_DOMAIN_RESOURCE_DEF_SEQ to start from SMP_DOMAIN_SEQ! declare l_new_seq INTEGER; + l_new_seqDom INTEGER; begin - select SMP_DOMAIN_SEQ.nextval into l_new_seq from dual; + select SMP_SERVICE_GROUP_DOMAIN_SEQ.nextval into l_new_seq from dual; + select SMP_DOMAIN_SEQ.nextval into l_new_seqDom from dual; execute immediate 'create sequence SMP_DOMAIN_RESOURCE_DEF_SEQ start with ' || l_new_seq || ' increment by 1'; + execute immediate 'create sequence SMP_GROUP_SEQ start with ' || l_new_seqDom || ' increment by 1'; end; /