From de0d00244d92a46aefd426fbf69597d040131243 Mon Sep 17 00:00:00 2001 From: jensp Date: Tue, 20 Nov 2018 12:25:38 +0000 Subject: [PATCH] CCM NG: Fixed migration scripts git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5739 8810af33-2d31-482b-a856-94f89814c4df Former-commit-id: 83f6523395ce626f344833e2250a9bf26aa83721 --- .../librecms/contentsection/ContentType.java | 5 +- .../ccm_core/V7_0_0_27__add_party_uuid.java | 74 ++++++++++++++++++ .../ccm_core/V7_0_0_28__add_role_uuid.java | 73 ++++++++++++++++++ .../V7_0_0_29__add_permission_uuid.java | 73 ++++++++++++++++++ .../V7_0_0_30__add_groupmembership_uuid.java | 75 ++++++++++++++++++ .../V7_0_0_31__add_rolemembership_uuid.java | 75 ++++++++++++++++++ .../V7_0_0_32__add_domain_ownership_uuid.java | 75 ++++++++++++++++++ .../V7_0_0_33__add_categorization_uuid.java | 76 ++++++++++++++++++ .../V7_0_0_34__add_resourcetype_uuid.java | 75 ++++++++++++++++++ .../V7_0_0_35__add_task_assignment_uuid.java | 77 +++++++++++++++++++ .../V7_0_0_36__add_task_dependency_uuid.java | 76 ++++++++++++++++++ .../h2/V7_0_0_27__add_party_uuid_h2.java | 39 ++++++++++ .../h2/V7_0_0_28__add_role_uuid_h2.java | 39 ++++++++++ .../h2/V7_0_0_29__add_permission_uuid_h2.java | 39 ++++++++++ ...7_0_0_30__add_groupmembership_uuid_h2.java | 39 ++++++++++ ...V7_0_0_31__add_rolemembership_uuid_h2.java | 39 ++++++++++ ..._0_0_32__add_domain_ownership_uuid_h2.java | 39 ++++++++++ ...V7_0_0_33__add_categorization_uuid_h2.java | 39 ++++++++++ .../V7_0_0_34__add_resourcetype_uuid_h2.java | 39 ++++++++++ ...7_0_0_35__add_task_assignment_uuid_h2.java | 39 ++++++++++ ...7_0_0_36__add_task_dependency_uuid_h2.java | 39 ++++++++++ .../V7_0_0_27__add_party_uuid_pgsql.java | 39 ++++++++++ .../pgsql/V7_0_0_28__add_role_uuid_pgsql.java | 40 ++++++++++ .../V7_0_0_29__add_permission_uuid_pgsql.java | 40 ++++++++++ ..._0_30__add_groupmembership_uuid_pgsql.java | 39 ++++++++++ ...0_0_31__add_rolemembership_uuid_pgsql.java | 39 ++++++++++ ...0_32__add_domain_ownership_uuid_pgsql.java | 39 ++++++++++ ...0_0_33__add_categorization_uuid_pgsql.java | 40 ++++++++++ ...7_0_0_34__add_resourcetype_uuid_pgsql.java | 40 ++++++++++ ..._0_35__add_task_assignment_uuid_pgsql.java | 39 ++++++++++ ..._0_36__add_task_dependency_uuid_pgsql.java | 39 ++++++++++ .../categorization/CategoryIdResolver.java | 2 +- .../ccm_core/h2/V7_0_0_27__add_party_uuid.sql | 5 -- .../ccm_core/h2/V7_0_0_28__add_role_uuid.sql | 5 -- .../h2/V7_0_0_29__add_permission_uuid.sql | 6 -- .../V7_0_0_30__add_groupmembership_uuid.sql | 7 -- .../h2/V7_0_0_31__add_rolemembership_uuid.sql | 7 -- .../V7_0_0_32__add_domain_ownership_uuid.sql | 8 -- .../h2/V7_0_0_33__add_categorization_uuid.sql | 9 --- .../h2/V7_0_0_34__add_resourcetype_uuid.sql | 10 --- .../V7_0_0_37__add_task_assignment_uuid.sql | 11 --- .../V7_0_0_38__add_task_dependency_uuid.sql | 12 --- .../h2/V7_0_0_38_add_task_dependency_uuid.sql | 12 --- .../pgsql/V7_0_0_27__add_party_uuid.sql | 5 -- .../pgsql/V7_0_0_28__add_role_uuid.sql | 5 -- .../pgsql/V7_0_0_29__add_permission_uuid.sql | 6 -- .../V7_0_0_30__add_groupmembership_uuid.sql | 7 -- .../V7_0_0_31__add_rolemembership_uuid.sql | 7 -- .../V7_0_0_32__add_domain_ownership_uuid.sql | 8 -- .../V7_0_0_33__add_categorization_uuid.sql | 9 --- .../V7_0_0_34__add_resourcetype_uuid.sql | 10 --- .../V7_0_0_37__add_task_assignment_uuid.sql | 11 --- .../V7_0_0_38__add_task_dependency_uuid.sql | 12 --- 53 files changed, 1536 insertions(+), 176 deletions(-) create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_27__add_party_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_28__add_role_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_29__add_permission_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_30__add_groupmembership_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_31__add_rolemembership_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_32__add_domain_ownership_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_33__add_categorization_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_34__add_resourcetype_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_35__add_task_assignment_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_36__add_task_dependency_uuid.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_35__add_task_assignment_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_36__add_task_dependency_uuid_h2.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_35__add_task_assignment_uuid_pgsql.java create mode 100644 ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_36__add_task_dependency_uuid_pgsql.java delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_37__add_task_assignment_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38__add_task_dependency_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38_add_task_dependency_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_37__add_task_assignment_uuid.sql delete mode 100644 ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_38__add_task_dependency_uuid.sql diff --git a/ccm-cms/src/main/java/org/librecms/contentsection/ContentType.java b/ccm-cms/src/main/java/org/librecms/contentsection/ContentType.java index 4fc72c0e3..cc9b511e4 100644 --- a/ccm-cms/src/main/java/org/librecms/contentsection/ContentType.java +++ b/ccm-cms/src/main/java/org/librecms/contentsection/ContentType.java @@ -18,12 +18,9 @@ */ package org.librecms.contentsection; -import static org.libreccm.core.CoreConstants.*; - import org.hibernate.annotations.NamedQueries; import org.hibernate.annotations.NamedQuery; - import org.libreccm.core.CcmObject; import org.libreccm.l10n.LocalizedString; import org.libreccm.workflow.Workflow; @@ -44,6 +41,8 @@ import javax.persistence.JoinTable; import javax.persistence.ManyToOne; import javax.persistence.Table; +import static org.librecms.CmsConstants.*; + /** * The {@code ContentType} entity links a content item with its content section. * It also provides default values for the lifecycle and the workflow. diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_27__add_party_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_27__add_party_uuid.java new file mode 100644 index 000000000..b01623b3d --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_27__add_party_uuid.java @@ -0,0 +1,74 @@ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_27__add_party_uuid implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveParties = connection + .prepareStatement("select PARTY_ID from CCM_CORE.PARTIES"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.PARTIES " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.PARTIES SET uuid = ? " + + "where PARTY_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.PARTIES " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.PARTIES " + + "add constraint UK_1hv061qace2mn4loroe3fwdel " + + "unique (UUID)"); + + final ResultSet partyIds = retrieveParties.executeQuery(); + + addUuidCol.execute(); + + while(partyIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, partyIds.getLong("PARTY_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_28__add_role_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_28__add_role_uuid.java new file mode 100644 index 000000000..27228632b --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_28__add_role_uuid.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_28__add_role_uuid implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveRoles = connection + .prepareStatement("select ROLE_ID from CCM_CORE.CCM_ROLES"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.CCM_ROLES " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.CCM_ROLES SET uuid = ? " + + "where ROLE_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.CCM_ROLES " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.CCM_ROLES " + + "add constraint UK_rfmsjqsq6kagolsod3ufkugll " + + "unique (UUID)"); + + final ResultSet roleIds = retrieveRoles.executeQuery(); + + addUuidCol.execute(); + + while(roleIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, roleIds.getLong("ROLE_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_29__add_permission_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_29__add_permission_uuid.java new file mode 100644 index 000000000..dde93020e --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_29__add_permission_uuid.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_29__add_permission_uuid implements JdbcMigration { + + @Override + public void migrate(Connection connection) throws Exception { + + final PreparedStatement retrievePermissions = connection + .prepareStatement("select PERMISSION_ID from CCM_CORE.PERMISSIONS"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.PERMISSIONS " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.PERMISSIONS SET uuid = ? " + + "where PERMISSION_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.PERMISSIONS " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.PERMISSIONS " + + "add constraint UK_p50se7rdexv7xnkiqsl6ijyti " + + "unique (UUID)"); + + final ResultSet permissionIds = retrievePermissions.executeQuery(); + + addUuidCol.execute(); + + while(permissionIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, permissionIds.getLong("PERMISSION_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_30__add_groupmembership_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_30__add_groupmembership_uuid.java new file mode 100644 index 000000000..368b15d01 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_30__add_groupmembership_uuid.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_30__add_groupmembership_uuid implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveMemberships = connection + .prepareStatement("select MEMBERSHIP_ID " + + "from CCM_CORE.GROUP_MEMBERSHIPS"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.GROUP_MEMBERSHIPS " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.GROUP_MEMBERSHIPS SET uuid = ? " + + "where MEMBERSHIP_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.GROUP_MEMBERSHIPS " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.GROUP_MEMBERSHIPS " + + "add constraint UK_kkdoia60bmiwhhdru169p3n9g " + + "unique (UUID)"); + + final ResultSet membershipIds = retrieveMemberships.executeQuery(); + + addUuidCol.execute(); + + while (membershipIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, membershipIds.getLong("MEMBERSHIP_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_31__add_rolemembership_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_31__add_rolemembership_uuid.java new file mode 100644 index 000000000..c845eb04a --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_31__add_rolemembership_uuid.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_31__add_rolemembership_uuid implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveMemberships = connection + .prepareStatement("select MEMBERSHIP_ID from CCM_CORE.ROLE_MEMBERSHIPS"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.ROLE_MEMBERSHIPS " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.ROLE_MEMBERSHIPS SET uuid = ? " + + "where MEMBERSHIP_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.ROLE_MEMBERSHIPS " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.ROLE_MEMBERSHIPS " + + "add constraint UK_82wdq214bfs99eii71fp50s97 " + + "unique (UUID)"); + + final ResultSet membershipIds = retrieveMemberships.executeQuery(); + + addUuidCol.execute(); + + while(membershipIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, membershipIds.getLong("MEMBERSHIP_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_32__add_domain_ownership_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_32__add_domain_ownership_uuid.java new file mode 100644 index 000000000..413fc8ba3 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_32__add_domain_ownership_uuid.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_32__add_domain_ownership_uuid implements JdbcMigration { + + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveOwnerships = connection + .prepareStatement("select OWNERSHIP_ID from CCM_CORE.DOMAIN_OWNERSHIPS"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.DOMAIN_OWNERSHIPS " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.DOMAIN_OWNERSHIPS SET uuid = ? " + + "where OWNERSHIP_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.DOMAIN_OWNERSHIPS " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.DOMAIN_OWNERSHIPS " + + "add constraint UK_j86gai9740v9hshascbsboudb " + + "unique (UUID)"); + + final ResultSet ownershipIds = retrieveOwnerships.executeQuery(); + + addUuidCol.execute(); + + while(ownershipIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, ownershipIds.getLong("OWNERSHIP_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_33__add_categorization_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_33__add_categorization_uuid.java new file mode 100644 index 000000000..388d29a91 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_33__add_categorization_uuid.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_33__add_categorization_uuid implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveCategoriations = connection + .prepareStatement("select CATEGORIZATION_ID " + + "from CCM_CORE.CATEGORIZATIONS"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.CATEGORIZATIONS " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.CATEGORIZATIONS SET uuid = ? " + + "where CATEGORIZATION_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.CATEGORIZATIONS " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.CATEGORIZATIONS " + + "add constraint UK_da7jus3wn1tr8poyaw9btxbrc " + + "unique (UUID)"); + + final ResultSet categorizationIds = retrieveCategoriations + .executeQuery(); + + addUuidCol.execute(); + + while (categorizationIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, categorizationIds.getLong("CATEGORIZATION_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_34__add_resourcetype_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_34__add_resourcetype_uuid.java new file mode 100644 index 000000000..583bb1d81 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_34__add_resourcetype_uuid.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_34__add_resourcetype_uuid implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveTypes = connection + .prepareStatement("select RESOURCE_TYPE_ID " + + "from CCM_CORE.RESOURCE_TYPES"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.RESOURCE_TYPES " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.RESOURCE_TYPES SET uuid = ? " + + "where RESOURCE_TYPE_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.RESOURCE_TYPES " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.RESOURCE_TYPES " + + "add constraint UK_ioax2ix2xmq3nw7el5k6orggb " + + "unique (UUID)"); + + final ResultSet typeIds = retrieveTypes.executeQuery(); + + addUuidCol.execute(); + + while (typeIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, typeIds.getLong("RESOURCE_TYPE_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_35__add_task_assignment_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_35__add_task_assignment_uuid.java new file mode 100644 index 000000000..af24aab2d --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_35__add_task_assignment_uuid.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_35__add_task_assignment_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveAssignments = connection + .prepareStatement("select TASK_ASSIGNMENT_ID " + + "from CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement("update CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS " + + "SET uuid = ? " + + "where TASK_ASSIGNMENT_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS " + + "add constraint UK_gv93k167pe9qy3go9vjau1q2t " + + "unique (UUID)"); + + final ResultSet assignmentIds = retrieveAssignments.executeQuery(); + + addUuidCol.execute(); + + while (assignmentIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, assignmentIds.getLong("TASK_ASSIGNMENT_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_36__add_task_dependency_uuid.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_36__add_task_dependency_uuid.java new file mode 100644 index 000000000..4cf3c57c7 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/V7_0_0_36__add_task_dependency_uuid.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core; + +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.UUID; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_36__add_task_dependency_uuid implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + + final PreparedStatement retrieveDependencies = connection + .prepareStatement("select TASK_DEPENDENCY_ID " + + "from CCM_CORE.WORKFLOW_TASK_DEPENDENCIES"); + + final PreparedStatement addUuidCol = connection + .prepareStatement("alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES " + + "add column UUID varchar(255)"); + + final PreparedStatement setUuid = connection + .prepareStatement( + "update CCM_CORE.WORKFLOW_TASK_DEPENDENCIES SET uuid = ? " + + "where TASK_DEPENDENCY_ID = ?"); + + final PreparedStatement addUuidNotNull = connection + .prepareStatement("alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES " + + "alter column UUID set not null"); + + final PreparedStatement addUniqueConstraint = connection + .prepareStatement( + "alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES " + + "add constraint UK_787va2ep8ucoul29qgsoaxnub " + + "unique (UUID)"); + + final ResultSet dependencyIds = retrieveDependencies.executeQuery(); + + addUuidCol.execute(); + + while (dependencyIds.next()) { + + setUuid.setString(1, UUID.randomUUID().toString()); + setUuid.setLong(2, dependencyIds.getLong("TASK_DEPENDENCY_ID")); + setUuid.executeUpdate(); + } + + addUuidNotNull.execute(); + addUniqueConstraint.execute(); + + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid_h2.java new file mode 100644 index 000000000..beb2cce0c --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_27__add_party_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_27__add_party_uuid_h2 + extends V7_0_0_27__add_party_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid_h2.java new file mode 100644 index 000000000..ac84a15c4 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_28__add_role_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_28__add_role_uuid_h2 + extends V7_0_0_28__add_role_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid_h2.java new file mode 100644 index 000000000..4401ed950 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_29__add_permission_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_29__add_permission_uuid_h2 + extends V7_0_0_29__add_permission_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid_h2.java new file mode 100644 index 000000000..154de88ee --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_30__add_groupmembership_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_30__add_groupmembership_uuid_h2 + extends V7_0_0_30__add_groupmembership_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid_h2.java new file mode 100644 index 000000000..dfdaa218f --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_31__add_rolemembership_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_31__add_rolemembership_uuid_h2 + extends V7_0_0_31__add_rolemembership_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid_h2.java new file mode 100644 index 000000000..5d998a05b --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_32__add_domain_ownership_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_32__add_domain_ownership_uuid_h2 + extends V7_0_0_32__add_domain_ownership_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid_h2.java new file mode 100644 index 000000000..07d2afa6b --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_33__add_categorization_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_33__add_categorization_uuid_h2 + extends V7_0_0_33__add_categorization_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid_h2.java new file mode 100644 index 000000000..a3235be20 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_34__add_resourcetype_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_34__add_resourcetype_uuid_h2 + extends V7_0_0_34__add_resourcetype_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_35__add_task_assignment_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_35__add_task_assignment_uuid_h2.java new file mode 100644 index 000000000..722f54544 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_35__add_task_assignment_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_35__add_task_assignment_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_35__add_task_assignment_uuid_h2 + extends V7_0_0_35__add_task_assignment_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_36__add_task_dependency_uuid_h2.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_36__add_task_dependency_uuid_h2.java new file mode 100644 index 000000000..84a728da2 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_36__add_task_dependency_uuid_h2.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.h2; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_36__add_task_dependency_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_36__add_task_dependency_uuid_h2 + extends V7_0_0_36__add_task_dependency_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid_pgsql.java new file mode 100644 index 000000000..652e99957 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid_pgsql.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_27__add_party_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_27__add_party_uuid_pgsql + extends V7_0_0_27__add_party_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid_pgsql.java new file mode 100644 index 000000000..1cd1cfe71 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid_pgsql.java @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.h2.*; +import db.migrations.org.libreccm.ccm_core.V7_0_0_28__add_role_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_28__add_role_uuid_pgsql + extends V7_0_0_28__add_role_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid_pgsql.java new file mode 100644 index 000000000..816f3791b --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid_pgsql.java @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.h2.*; +import db.migrations.org.libreccm.ccm_core.V7_0_0_29__add_permission_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_29__add_permission_uuid_pgsql + extends V7_0_0_29__add_permission_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid_pgsql.java new file mode 100644 index 000000000..bf68c6a35 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid_pgsql.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_30__add_groupmembership_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_30__add_groupmembership_uuid_pgsql + extends V7_0_0_30__add_groupmembership_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid_pgsql.java new file mode 100644 index 000000000..8e858d201 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid_pgsql.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_31__add_rolemembership_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_31__add_rolemembership_uuid_pgsql + extends V7_0_0_31__add_rolemembership_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid_pgsql.java new file mode 100644 index 000000000..fd9f3310a --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid_pgsql.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_32__add_domain_ownership_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_32__add_domain_ownership_uuid_pgsql + extends V7_0_0_32__add_domain_ownership_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid_pgsql.java new file mode 100644 index 000000000..267acb4e5 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid_pgsql.java @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.h2.*; +import db.migrations.org.libreccm.ccm_core.V7_0_0_33__add_categorization_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_33__add_categorization_uuid_pgsql + extends V7_0_0_33__add_categorization_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid_pgsql.java new file mode 100644 index 000000000..f9984400c --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid_pgsql.java @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.h2.*; +import db.migrations.org.libreccm.ccm_core.V7_0_0_34__add_resourcetype_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_34__add_resourcetype_uuid_pgsql + extends V7_0_0_34__add_resourcetype_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_35__add_task_assignment_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_35__add_task_assignment_uuid_pgsql.java new file mode 100644 index 000000000..5709d49e2 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_35__add_task_assignment_uuid_pgsql.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_35__add_task_assignment_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_35__add_task_assignment_uuid_pgsql + extends V7_0_0_35__add_task_assignment_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_36__add_task_dependency_uuid_pgsql.java b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_36__add_task_dependency_uuid_pgsql.java new file mode 100644 index 000000000..989516115 --- /dev/null +++ b/ccm-core/src/main/java/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_36__add_task_dependency_uuid_pgsql.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 LibreCCM Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package db.migrations.org.libreccm.ccm_core.pgsql; + +import db.migrations.org.libreccm.ccm_core.V7_0_0_36__add_task_dependency_uuid; +import org.flywaydb.core.api.migration.jdbc.JdbcMigration; + +import java.sql.Connection; + +/** + * + * @author Jens Pelzetter + */ +public class V7_0_0_36__add_task_dependency_uuid_pgsql + extends V7_0_0_36__add_task_dependency_uuid + implements JdbcMigration { + + @Override + public void migrate(final Connection connection) throws Exception { + super.migrate(connection); + } + +} diff --git a/ccm-core/src/main/java/org/libreccm/categorization/CategoryIdResolver.java b/ccm-core/src/main/java/org/libreccm/categorization/CategoryIdResolver.java index 398740ca2..4f27e09dd 100644 --- a/ccm-core/src/main/java/org/libreccm/categorization/CategoryIdResolver.java +++ b/ccm-core/src/main/java/org/libreccm/categorization/CategoryIdResolver.java @@ -26,7 +26,7 @@ import javax.enterprise.context.RequestScoped; import java.io.Serializable; /** - * @author Tobias Osmers * @version created on 3/23/17 */ @RequestScoped diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid.sql deleted file mode 100644 index af004e8b2..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_27__add_party_uuid.sql +++ /dev/null @@ -1,5 +0,0 @@ -alter table CCM_CORE.PARTIES - add column UUID varchar(255) not null; - -alter table CCM_CORE.PARTIES - add constraint UK_1hv061qace2mn4loroe3fwdel unique (UUID); \ No newline at end of file diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid.sql deleted file mode 100644 index 69dbfa84b..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_28__add_role_uuid.sql +++ /dev/null @@ -1,5 +0,0 @@ -alter table CCM_CORE.ROLES - add column UUID varchar(255) not null; - -alter table CCM_CORE.ROLES - add constraint UK_rfmsjqsq6kagolsod3ufkugll unique (UUID); diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid.sql deleted file mode 100644 index 38f3e2fc4..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_29__add_permission_uuid.sql +++ /dev/null @@ -1,6 +0,0 @@ -alter table CCM_CORE.PERMISSIONS - add column UUID varchar(255) not null; - -alter table CCM_CORE.PERMISSIONS - add constraint UK_p50se7rdexv7xnkiqsl6ijyti unique (UUID); - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid.sql deleted file mode 100644 index 3c2ef30e9..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_30__add_groupmembership_uuid.sql +++ /dev/null @@ -1,7 +0,0 @@ -alter table CCM_CORE.GROUP_MEMBERSHIPS - add column UUID varchar(255) not null; - -alter table CCM_CORE.GROUP_MEMBERSHIPS - add constraint UK_kkdoia60bmiwhhdru169p3n9g unique (UUID); - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid.sql deleted file mode 100644 index c4a5856f8..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_31__add_rolemembership_uuid.sql +++ /dev/null @@ -1,7 +0,0 @@ -alter table CCM_CORE.ROLE_MEMBERSHIPS - add column UUID varchar(255) not null; - -alter table CCM_CORE.ROLE_MEMBERSHIPS - add constraint UK_82wdq214bfs99eii71fp50s97 unique (UUID); - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid.sql deleted file mode 100644 index de9912c39..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_32__add_domain_ownership_uuid.sql +++ /dev/null @@ -1,8 +0,0 @@ -alter table CCM_CORE.DOMAIN_OWNERSHIPS - add column UUID varchar(255) not null; - -alter table CCM_CORE.DOMAIN_OWNERSHIPS - add constraint UK_j86gai9740v9hshascbsboudb unique (UUID); - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid.sql deleted file mode 100644 index 7b976447e..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_33__add_categorization_uuid.sql +++ /dev/null @@ -1,9 +0,0 @@ -alter table CCM_CORE.CATEGORIZATIONS - add column UUID varchar(255) not null; - -alter table CCM_CORE.CATEGORIZATIONS - add constraint UK_da7jus3wn1tr8poyaw9btxbrc unique (UUID); - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid.sql deleted file mode 100644 index 36e608090..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_34__add_resourcetype_uuid.sql +++ /dev/null @@ -1,10 +0,0 @@ -alter table CCM_CORE.RESOURCE_TYPES - add column UUID varchar(255) not null; - -alter table CCM_CORE.RESOURCE_TYPES - add constraint UK_ioax2ix2xmq3nw7el5k6orggb unique (UUID); - - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_37__add_task_assignment_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_37__add_task_assignment_uuid.sql deleted file mode 100644 index 2507a4cff..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_37__add_task_assignment_uuid.sql +++ /dev/null @@ -1,11 +0,0 @@ -alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS - add column UUID varchar(255) not null; - -alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS - add constraint UK_gv93k167pe9qy3go9vjau1q2t unique (UUID); - - - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38__add_task_dependency_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38__add_task_dependency_uuid.sql deleted file mode 100644 index 7d71aa244..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38__add_task_dependency_uuid.sql +++ /dev/null @@ -1,12 +0,0 @@ -alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES - add column UUID varchar(255) not null; - -alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES - add constraint UK_787va2ep8ucoul29qgsoaxnub unique (UUID); - - - - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38_add_task_dependency_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38_add_task_dependency_uuid.sql deleted file mode 100644 index 7d71aa244..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/h2/V7_0_0_38_add_task_dependency_uuid.sql +++ /dev/null @@ -1,12 +0,0 @@ -alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES - add column UUID varchar(255) not null; - -alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES - add constraint UK_787va2ep8ucoul29qgsoaxnub unique (UUID); - - - - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid.sql deleted file mode 100644 index af004e8b2..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_27__add_party_uuid.sql +++ /dev/null @@ -1,5 +0,0 @@ -alter table CCM_CORE.PARTIES - add column UUID varchar(255) not null; - -alter table CCM_CORE.PARTIES - add constraint UK_1hv061qace2mn4loroe3fwdel unique (UUID); \ No newline at end of file diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid.sql deleted file mode 100644 index 69dbfa84b..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_28__add_role_uuid.sql +++ /dev/null @@ -1,5 +0,0 @@ -alter table CCM_CORE.ROLES - add column UUID varchar(255) not null; - -alter table CCM_CORE.ROLES - add constraint UK_rfmsjqsq6kagolsod3ufkugll unique (UUID); diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid.sql deleted file mode 100644 index 38f3e2fc4..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_29__add_permission_uuid.sql +++ /dev/null @@ -1,6 +0,0 @@ -alter table CCM_CORE.PERMISSIONS - add column UUID varchar(255) not null; - -alter table CCM_CORE.PERMISSIONS - add constraint UK_p50se7rdexv7xnkiqsl6ijyti unique (UUID); - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid.sql deleted file mode 100644 index 3c2ef30e9..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_30__add_groupmembership_uuid.sql +++ /dev/null @@ -1,7 +0,0 @@ -alter table CCM_CORE.GROUP_MEMBERSHIPS - add column UUID varchar(255) not null; - -alter table CCM_CORE.GROUP_MEMBERSHIPS - add constraint UK_kkdoia60bmiwhhdru169p3n9g unique (UUID); - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid.sql deleted file mode 100644 index c4a5856f8..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_31__add_rolemembership_uuid.sql +++ /dev/null @@ -1,7 +0,0 @@ -alter table CCM_CORE.ROLE_MEMBERSHIPS - add column UUID varchar(255) not null; - -alter table CCM_CORE.ROLE_MEMBERSHIPS - add constraint UK_82wdq214bfs99eii71fp50s97 unique (UUID); - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid.sql deleted file mode 100644 index de9912c39..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_32__add_domain_ownership_uuid.sql +++ /dev/null @@ -1,8 +0,0 @@ -alter table CCM_CORE.DOMAIN_OWNERSHIPS - add column UUID varchar(255) not null; - -alter table CCM_CORE.DOMAIN_OWNERSHIPS - add constraint UK_j86gai9740v9hshascbsboudb unique (UUID); - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid.sql deleted file mode 100644 index 7b976447e..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_33__add_categorization_uuid.sql +++ /dev/null @@ -1,9 +0,0 @@ -alter table CCM_CORE.CATEGORIZATIONS - add column UUID varchar(255) not null; - -alter table CCM_CORE.CATEGORIZATIONS - add constraint UK_da7jus3wn1tr8poyaw9btxbrc unique (UUID); - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid.sql deleted file mode 100644 index 36e608090..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_34__add_resourcetype_uuid.sql +++ /dev/null @@ -1,10 +0,0 @@ -alter table CCM_CORE.RESOURCE_TYPES - add column UUID varchar(255) not null; - -alter table CCM_CORE.RESOURCE_TYPES - add constraint UK_ioax2ix2xmq3nw7el5k6orggb unique (UUID); - - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_37__add_task_assignment_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_37__add_task_assignment_uuid.sql deleted file mode 100644 index 2507a4cff..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_37__add_task_assignment_uuid.sql +++ /dev/null @@ -1,11 +0,0 @@ -alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS - add column UUID varchar(255) not null; - -alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS - add constraint UK_gv93k167pe9qy3go9vjau1q2t unique (UUID); - - - - - - diff --git a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_38__add_task_dependency_uuid.sql b/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_38__add_task_dependency_uuid.sql deleted file mode 100644 index 7d71aa244..000000000 --- a/ccm-core/src/main/resources/db/migrations/org/libreccm/ccm_core/pgsql/V7_0_0_38__add_task_dependency_uuid.sql +++ /dev/null @@ -1,12 +0,0 @@ -alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES - add column UUID varchar(255) not null; - -alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES - add constraint UK_787va2ep8ucoul29qgsoaxnub unique (UUID); - - - - - - -