CCM NG: Additional database migration steps for removing WorkflowTemplate

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5028 8810af33-2d31-482b-a856-94f89814c4df
pull/2/head
jensp 2017-10-05 17:14:37 +00:00
parent 5e604c8675
commit 28bf59a53c
4 changed files with 14 additions and 12 deletions

View File

@ -1,4 +1,5 @@
drop constraint FKrx08cdjm9tutrp5lvfhgslw48; alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
drop constraint if exists FKrx08cdjm9tutrp5lvfhgslw48;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint FK1t85m4jehnhd6tyx5dtpavr15 add constraint FK1t85m4jehnhd6tyx5dtpavr15
@ -6,12 +7,9 @@ alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
references CCM_CORE.WORKFLOWS; references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_TYPES alter table CCM_CMS.CONTENT_TYPES
drop constraint if exists FKhnu9oikw8rpf22lt5fmk41t7k; drop constraint if exists FKhnu9oikw8rpf22lt5fmk41t7k;
alter table CCM_CMS.CONTENT_TYPES alter table CCM_CMS.CONTENT_TYPES
add constraint FKpgeccqsr50xwb268ypmfx0r66 add constraint FKpgeccqsr50xwb268ypmfx0r66
foreign key (DEFAULT_WORKFLOW) foreign key (DEFAULT_WORKFLOW)
references CCM_CORE.WORKFLOWS; references CCM_CORE.WORKFLOWS;
alter table if exists FKeixdxau4jebw682gd49tdbsjy
drop constraint FKeixdxau4jebw682gd49tdbsjy;

View File

@ -1,4 +1,5 @@
drop constraint FKrx08cdjm9tutrp5lvfhgslw48; alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
drop constraint if exists FKrx08cdjm9tutrp5lvfhgslw48;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint FK1t85m4jehnhd6tyx5dtpavr15 add constraint FK1t85m4jehnhd6tyx5dtpavr15
@ -6,12 +7,9 @@ alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
references CCM_CORE.WORKFLOWS; references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_TYPES alter table CCM_CMS.CONTENT_TYPES
drop constraint if exists FKhnu9oikw8rpf22lt5fmk41t7k; drop constraint if exists FKhnu9oikw8rpf22lt5fmk41t7k;
alter table CCM_CMS.CONTENT_TYPES alter table CCM_CMS.CONTENT_TYPES
add constraint FKpgeccqsr50xwb268ypmfx0r66 add constraint FKpgeccqsr50xwb268ypmfx0r66
foreign key (DEFAULT_WORKFLOW) foreign key (DEFAULT_WORKFLOW)
references CCM_CORE.WORKFLOWS; references CCM_CORE.WORKFLOWS;
alter table if exists FKeixdxau4jebw682gd49tdbsjy
drop constraint FKeixdxau4jebw682gd49tdbsjy;

View File

@ -0,0 +1,3 @@
update CCM_CORE.WORKFLOWS
set ABSTRACT_WORKFLOW = false
where ABSTRACT_WORKFLOW is null;

View File

@ -0,0 +1,3 @@
update CCM_CORE.WORKFLOWS
set ABSTRACT_WORKFLOW = false
where ABSTRACT_WORKFLOW is null;