Skip to content

Commit

Permalink
Add schema property delete to sql files
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed Aug 20, 2024
1 parent e27d45d commit e3179f1
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ drop table ACT_CMMN_RU_PLAN_ITEM_INST;
drop table ACT_CMMN_RU_CASE_INST;
drop table ACT_CMMN_CASEDEF;
drop table ACT_CMMN_DEPLOYMENT_RESOURCE;
drop table ACT_CMMN_DEPLOYMENT;
drop table ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ drop index if exists ACT_IDX_CASE_INST_PARENT;
drop index if exists ACT_IDX_CASE_INST_CASE_DEF;
drop index if exists ACT_IDX_CASE_DEF_DPLY;
drop index if exists ACT_IDX_CMMN_RSRC_DPL;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_RU_CASE_INST') drop table ACT_CMMN_RU_CASE_INST;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_CASEDEF') drop table ACT_CMMN_CASEDEF;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_DEPLOYMENT_RESOURCE') drop table ACT_CMMN_DEPLOYMENT_RESOURCE;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_DEPLOYMENT') drop table ACT_CMMN_DEPLOYMENT;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_DEPLOYMENT') drop table ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ drop table if exists ACT_CMMN_RU_PLAN_ITEM_INST;
drop table if exists ACT_CMMN_RU_CASE_INST;
drop table if exists ACT_CMMN_CASEDEF;
drop table if exists ACT_CMMN_DEPLOYMENT_RESOURCE;
drop table if exists ACT_CMMN_DEPLOYMENT;
drop table if exists ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ drop table ACT_CMMN_RU_PLAN_ITEM_INST;
drop table ACT_CMMN_RU_CASE_INST;
drop table ACT_CMMN_CASEDEF;
drop table ACT_CMMN_DEPLOYMENT_RESOURCE;
drop table ACT_CMMN_DEPLOYMENT;
drop table ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ drop table ACT_CMMN_RU_PLAN_ITEM_INST cascade;
drop table ACT_CMMN_RU_CASE_INST cascade;
drop table ACT_CMMN_CASEDEF cascade;
drop table ACT_CMMN_DEPLOYMENT_RESOURCE cascade;
drop table ACT_CMMN_DEPLOYMENT cascade;
drop table ACT_CMMN_DEPLOYMENT cascade;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table ACT_DMN_HI_DECISION_EXECUTION;
drop table ACT_DMN_DECISION;
drop table ACT_DMN_DEPLOYMENT_RESOURCE;
drop table ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table if exists ACT_DMN_DEPLOYMENT cascade constraints;

drop index if exists ACT_IDX_DMN_INSTANCE_ID;
drop index if exists ACT_IDX_DMN_DEC_UNIQ;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_DMN_DECISION') drop table ACT_DMN_DECISION;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_DMN_DEPLOYMENT_RESOURCE') drop table ACT_DMN_DEPLOYMENT_RESOURCE;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_DMN_DEPLOYMENT') drop table ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table if exists ACT_DMN_HI_DECISION_EXECUTION;
drop table if exists ACT_DMN_DECISION;
drop table if exists ACT_DMN_DEPLOYMENT_RESOURCE;
drop table if exists ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table ACT_DMN_HI_DECISION_EXECUTION;
drop table ACT_DMN_DECISION;
drop table ACT_DMN_DEPLOYMENT_RESOURCE;
drop table ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ drop table if exists ACT_DMN_HI_DECISION_EXECUTION cascade;
drop table if exists ACT_DMN_DECISION cascade;
drop table if exists ACT_DMN_DEPLOYMENT_RESOURCE cascade;
drop table if exists ACT_DMN_DEPLOYMENT cascade;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table FLW_CHANNEL_DEFINITION;
drop table FLW_EVENT_DEFINITION;
drop table FLW_EVENT_RESOURCE;
drop table FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table if exists FLW_CHANNEL_DEFINITION cascade constraints;
drop table if exists FLW_EVENT_DEFINITION cascade constraints;
drop table if exists FLW_EVENT_RESOURCE cascade constraints;
drop table if exists FLW_EVENT_DEPLOYMENT cascade constraints;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ IF EXISTS (SELECT name FROM sysindexes WHERE name = 'ACT_IDX_EVENT_DEF_UNIQ') dr
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_CHANNEL_DEFINITION') drop table FLW_CHANNEL_DEFINITION;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_EVENT_DEFINITION') drop table FLW_EVENT_DEFINITION;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_EVENT_RESOURCE') drop table FLW_EVENT_RESOURCE;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_EVENT_DEPLOYMENT') drop table FLW_EVENT_DEPLOYMENT;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_EVENT_DEPLOYMENT') drop table FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table if exists FLW_CHANNEL_DEFINITION;
drop table if exists FLW_EVENT_DEFINITION;
drop table if exists FLW_EVENT_RESOURCE;
drop table if exists FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ drop table FLW_CHANNEL_DEFINITION;
drop table FLW_EVENT_DEFINITION;
drop table FLW_EVENT_RESOURCE;
drop table FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ drop table if exists FLW_CHANNEL_DEFINITION cascade;
drop table if exists FLW_EVENT_DEFINITION cascade;
drop table if exists FLW_EVENT_RESOURCE cascade;
drop table if exists FLW_EVENT_DEPLOYMENT cascade;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';

0 comments on commit e3179f1

Please sign in to comment.