Updated Flyway to 6.4.4. Some migration was necssary for Java based migrations
parent
16cc3fb2ea
commit
3e5327a080
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
||||
public class V7_0_0_23__move_components_to_container extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
// Get all draft PageModels from ccm_core.page_models
|
||||
final PreparedStatement retrievePageModels = connection
|
||||
|
|
@ -41,14 +44,12 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
|||
+ "where VERSION = 'DRAFT'");
|
||||
|
||||
|
||||
/*
|
||||
For each PageModel:
|
||||
* Create a single container (by inserting the data into
|
||||
ccm_core.page_model_container_models)
|
||||
* set container_id of each component_model of the page_model
|
||||
to the ID of the new container
|
||||
* if the PageModel has a public version do the same but reuse the
|
||||
containerUuid
|
||||
/*
|
||||
* For each PageModel: Create a single container (by inserting the data
|
||||
* into ccm_core.page_model_container_models) set container_id of each
|
||||
* component_model of the page_model to the ID of the new container if
|
||||
* the PageModel has a public version do the same but reuse the
|
||||
* containerUuid
|
||||
*/
|
||||
final PreparedStatement createContainerId = connection
|
||||
.prepareStatement("select nextval('hibernate_sequence')");
|
||||
|
|
@ -87,8 +88,8 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
|||
+ " where PAGE_MODEL_ID = ?"
|
||||
+ ")");
|
||||
try (final ResultSet pageModelsResultSet
|
||||
= retrievePageModels.executeQuery()) {
|
||||
|
||||
= retrievePageModels.executeQuery()) {
|
||||
|
||||
while (pageModelsResultSet.next()) {
|
||||
|
||||
final long pageModelId = pageModelsResultSet
|
||||
|
|
@ -101,7 +102,7 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
|||
|
||||
final long containerId;
|
||||
try (final ResultSet containerIdResultSet
|
||||
= createContainerId.executeQuery()) {
|
||||
= createContainerId.executeQuery()) {
|
||||
|
||||
containerIdResultSet.next();
|
||||
containerId = containerIdResultSet.getLong("nextval");
|
||||
|
|
@ -121,8 +122,8 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
|||
checkForLivePageModel.setString(1, modelUuid);
|
||||
final long liveCount;
|
||||
try (final ResultSet liveCountResultSet
|
||||
= checkForLivePageModel.executeQuery()) {
|
||||
|
||||
= checkForLivePageModel.executeQuery()) {
|
||||
|
||||
liveCountResultSet.next();
|
||||
liveCount = liveCountResultSet.getLong("COUNT");
|
||||
}
|
||||
|
|
@ -131,14 +132,14 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
|||
retrieveLivePage.setString(1, modelUuid);
|
||||
final long livePageModelId;
|
||||
try (final ResultSet liveResultSet
|
||||
= retrieveLivePage.executeQuery()) {
|
||||
= retrieveLivePage.executeQuery()) {
|
||||
liveResultSet.next();
|
||||
livePageModelId = liveResultSet.getLong("PAGE_MODEL_ID");
|
||||
}
|
||||
|
||||
final long liveContainerId;
|
||||
try (final ResultSet liveContainerIdResultSet
|
||||
= createContainerId.executeQuery()) {
|
||||
= createContainerId.executeQuery()) {
|
||||
liveContainerIdResultSet.next();
|
||||
liveContainerId = liveContainerIdResultSet
|
||||
.getLong("nextval");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -10,29 +11,30 @@ 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 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.
|
||||
* 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
|
||||
* 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 <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_27__add_party_uuid implements JdbcMigration {
|
||||
public class V7_0_0_27__add_party_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveParties = connection
|
||||
.prepareStatement("select PARTY_ID from CCM_CORE.PARTIES");
|
||||
|
|
@ -58,14 +60,14 @@ public class V7_0_0_27__add_party_uuid implements JdbcMigration {
|
|||
final ResultSet partyIds = retrieveParties.executeQuery();
|
||||
|
||||
addUuidCol.execute();
|
||||
|
||||
while(partyIds.next()) {
|
||||
|
||||
|
||||
while (partyIds.next()) {
|
||||
|
||||
setUuid.setString(1, UUID.randomUUID().toString());
|
||||
setUuid.setLong(2, partyIds.getLong("PARTY_ID"));
|
||||
setUuid.executeUpdate();
|
||||
}
|
||||
|
||||
|
||||
addUuidNotNull.execute();
|
||||
addUniqueConstraint.execute();
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,11 +31,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_28__add_role_uuid implements JdbcMigration {
|
||||
public class V7_0_0_28__add_role_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveRoles = connection
|
||||
.prepareStatement("select ROLE_ID from CCM_CORE.CCM_ROLES");
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,11 +30,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_29__add_permission_uuid implements JdbcMigration {
|
||||
public class V7_0_0_29__add_permission_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrievePermissions = connection
|
||||
.prepareStatement("select PERMISSION_ID from CCM_CORE.PERMISSIONS");
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,11 +30,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_30__add_groupmembership_uuid implements JdbcMigration {
|
||||
public class V7_0_0_30__add_groupmembership_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveMemberships = connection
|
||||
.prepareStatement("select MEMBERSHIP_ID "
|
||||
+ "from CCM_CORE.GROUP_MEMBERSHIPS");
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,11 +30,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_31__add_rolemembership_uuid implements JdbcMigration {
|
||||
public class V7_0_0_31__add_rolemembership_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveMemberships = connection
|
||||
.prepareStatement("select MEMBERSHIP_ID from CCM_CORE.ROLE_MEMBERSHIPS");
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,12 +30,14 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_32__add_domain_ownership_uuid implements JdbcMigration {
|
||||
public class V7_0_0_32__add_domain_ownership_uuid extends BaseJavaMigration {
|
||||
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveOwnerships = connection
|
||||
.prepareStatement("select OWNERSHIP_ID from CCM_CORE.DOMAIN_OWNERSHIPS");
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,11 +30,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_33__add_categorization_uuid implements JdbcMigration {
|
||||
public class V7_0_0_33__add_categorization_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveCategoriations = connection
|
||||
.prepareStatement("select CATEGORIZATION_ID "
|
||||
+ "from CCM_CORE.CATEGORIZATIONS");
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,11 +30,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_34__add_resourcetype_uuid implements JdbcMigration {
|
||||
public class V7_0_0_34__add_resourcetype_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveTypes = connection
|
||||
.prepareStatement("select RESOURCE_TYPE_ID "
|
||||
+ "from CCM_CORE.RESOURCE_TYPES");
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,12 +30,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_35__add_task_assignment_uuid
|
||||
implements JdbcMigration {
|
||||
public class V7_0_0_35__add_task_assignment_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveAssignments = connection
|
||||
.prepareStatement("select TASK_ASSIGNMENT_ID "
|
||||
+ "from CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS");
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
*/
|
||||
package db.migrations.org.libreccm.ccm_core;
|
||||
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
import org.flywaydb.core.api.migration.BaseJavaMigration;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
|
|
@ -29,11 +30,13 @@ import java.util.UUID;
|
|||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_36__add_task_dependency_uuid implements JdbcMigration {
|
||||
public class V7_0_0_36__add_task_dependency_uuid extends BaseJavaMigration {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
public void migrate(final Context context) throws Exception {
|
||||
|
||||
final Connection connection = context.getConnection();
|
||||
|
||||
final PreparedStatement retrieveDependencies = connection
|
||||
.prepareStatement("select TASK_DEPENDENCY_ID "
|
||||
+ "from CCM_CORE.WORKFLOW_TASK_DEPENDENCIES");
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
package db.migrations.org.libreccm.ccm_core.h2;
|
||||
|
||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_23__move_components_to_container;
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
|
||||
import java.sql.Connection;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_23__move_components_to_container_h2
|
||||
extends V7_0_0_23__move_components_to_container
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_23__move_components_to_container {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_27__add_party_uuid_h2
|
||||
extends V7_0_0_27__add_party_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_27__add_party_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_28__add_role_uuid_h2
|
||||
extends V7_0_0_28__add_role_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_28__add_role_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_29__add_permission_uuid_h2
|
||||
extends V7_0_0_29__add_permission_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_29__add_permission_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_30__add_groupmembership_uuid_h2
|
||||
extends V7_0_0_30__add_groupmembership_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_30__add_groupmembership_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_31__add_rolemembership_uuid_h2
|
||||
extends V7_0_0_31__add_rolemembership_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_31__add_rolemembership_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_32__add_domain_ownership_uuid_h2
|
||||
extends V7_0_0_32__add_domain_ownership_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_32__add_domain_ownership_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_33__add_categorization_uuid_h2
|
||||
extends V7_0_0_33__add_categorization_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_33__add_categorization_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_34__add_resourcetype_uuid_h2
|
||||
extends V7_0_0_34__add_resourcetype_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_34__add_resourcetype_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_35__add_task_assignment_uuid_h2
|
||||
extends V7_0_0_35__add_task_assignment_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_35__add_task_assignment_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_36__add_task_dependency_uuid_h2
|
||||
extends V7_0_0_36__add_task_dependency_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_36__add_task_dependency_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||
|
||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_23__move_components_to_container;
|
||||
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
|
||||
|
||||
import java.sql.Connection;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_23__move_components_to_container_pgsql
|
||||
extends V7_0_0_23__move_components_to_container
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_23__move_components_to_container {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,19 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_27__add_party_uuid_pgsql
|
||||
extends V7_0_0_27__add_party_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_27__add_party_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,23 +18,20 @@
|
|||
*/
|
||||
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 org.flywaydb.core.api.migration.Context;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_28__add_role_uuid_pgsql
|
||||
extends V7_0_0_28__add_role_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_28__add_role_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,23 +18,19 @@
|
|||
*/
|
||||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_29__add_permission_uuid_pgsql
|
||||
extends V7_0_0_29__add_permission_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_29__add_permission_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_30__add_groupmembership_uuid_pgsql
|
||||
extends V7_0_0_30__add_groupmembership_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_30__add_groupmembership_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_31__add_rolemembership_uuid_pgsql
|
||||
extends V7_0_0_31__add_rolemembership_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_31__add_rolemembership_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_32__add_domain_ownership_uuid_pgsql
|
||||
extends V7_0_0_32__add_domain_ownership_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_32__add_domain_ownership_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,23 +18,19 @@
|
|||
*/
|
||||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_33__add_categorization_uuid_pgsql
|
||||
extends V7_0_0_33__add_categorization_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_33__add_categorization_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,23 +18,19 @@
|
|||
*/
|
||||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_34__add_resourcetype_uuid_pgsql
|
||||
extends V7_0_0_34__add_resourcetype_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_34__add_resourcetype_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_35__add_task_assignment_uuid_pgsql
|
||||
extends V7_0_0_35__add_task_assignment_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_35__add_task_assignment_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
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;
|
||||
import org.flywaydb.core.api.migration.Context;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class V7_0_0_36__add_task_dependency_uuid_pgsql
|
||||
extends V7_0_0_36__add_task_dependency_uuid
|
||||
implements JdbcMigration {
|
||||
extends V7_0_0_36__add_task_dependency_uuid {
|
||||
|
||||
@Override
|
||||
public void migrate(final Connection connection) throws Exception {
|
||||
super.migrate(connection);
|
||||
public void migrate(final Context context) throws Exception {
|
||||
super.migrate(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue