Updated Flyway to 6.4.4. Some migration was necssary for Java based migrations
Former-commit-id: 4bdecc1f49
pull/3/head
parent
2d55617d77
commit
6e302a7e7b
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
// Get all draft PageModels from ccm_core.page_models
|
||||||
final PreparedStatement retrievePageModels = connection
|
final PreparedStatement retrievePageModels = connection
|
||||||
|
|
@ -42,13 +45,11 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
For each PageModel:
|
* For each PageModel: Create a single container (by inserting the data
|
||||||
* Create a single container (by inserting the data into
|
* into ccm_core.page_model_container_models) set container_id of each
|
||||||
ccm_core.page_model_container_models)
|
* component_model of the page_model to the ID of the new container if
|
||||||
* set container_id of each component_model of the page_model
|
* the PageModel has a public version do the same but reuse the
|
||||||
to the ID of the new container
|
* containerUuid
|
||||||
* if the PageModel has a public version do the same but reuse the
|
|
||||||
containerUuid
|
|
||||||
*/
|
*/
|
||||||
final PreparedStatement createContainerId = connection
|
final PreparedStatement createContainerId = connection
|
||||||
.prepareStatement("select nextval('hibernate_sequence')");
|
.prepareStatement("select nextval('hibernate_sequence')");
|
||||||
|
|
@ -87,7 +88,7 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
||||||
+ " where PAGE_MODEL_ID = ?"
|
+ " where PAGE_MODEL_ID = ?"
|
||||||
+ ")");
|
+ ")");
|
||||||
try (final ResultSet pageModelsResultSet
|
try (final ResultSet pageModelsResultSet
|
||||||
= retrievePageModels.executeQuery()) {
|
= retrievePageModels.executeQuery()) {
|
||||||
|
|
||||||
while (pageModelsResultSet.next()) {
|
while (pageModelsResultSet.next()) {
|
||||||
|
|
||||||
|
|
@ -101,7 +102,7 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
||||||
|
|
||||||
final long containerId;
|
final long containerId;
|
||||||
try (final ResultSet containerIdResultSet
|
try (final ResultSet containerIdResultSet
|
||||||
= createContainerId.executeQuery()) {
|
= createContainerId.executeQuery()) {
|
||||||
|
|
||||||
containerIdResultSet.next();
|
containerIdResultSet.next();
|
||||||
containerId = containerIdResultSet.getLong("nextval");
|
containerId = containerIdResultSet.getLong("nextval");
|
||||||
|
|
@ -121,7 +122,7 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
||||||
checkForLivePageModel.setString(1, modelUuid);
|
checkForLivePageModel.setString(1, modelUuid);
|
||||||
final long liveCount;
|
final long liveCount;
|
||||||
try (final ResultSet liveCountResultSet
|
try (final ResultSet liveCountResultSet
|
||||||
= checkForLivePageModel.executeQuery()) {
|
= checkForLivePageModel.executeQuery()) {
|
||||||
|
|
||||||
liveCountResultSet.next();
|
liveCountResultSet.next();
|
||||||
liveCount = liveCountResultSet.getLong("COUNT");
|
liveCount = liveCountResultSet.getLong("COUNT");
|
||||||
|
|
@ -131,14 +132,14 @@ public class V7_0_0_23__move_components_to_container implements JdbcMigration {
|
||||||
retrieveLivePage.setString(1, modelUuid);
|
retrieveLivePage.setString(1, modelUuid);
|
||||||
final long livePageModelId;
|
final long livePageModelId;
|
||||||
try (final ResultSet liveResultSet
|
try (final ResultSet liveResultSet
|
||||||
= retrieveLivePage.executeQuery()) {
|
= retrieveLivePage.executeQuery()) {
|
||||||
liveResultSet.next();
|
liveResultSet.next();
|
||||||
livePageModelId = liveResultSet.getLong("PAGE_MODEL_ID");
|
livePageModelId = liveResultSet.getLong("PAGE_MODEL_ID");
|
||||||
}
|
}
|
||||||
|
|
||||||
final long liveContainerId;
|
final long liveContainerId;
|
||||||
try (final ResultSet liveContainerIdResultSet
|
try (final ResultSet liveContainerIdResultSet
|
||||||
= createContainerId.executeQuery()) {
|
= createContainerId.executeQuery()) {
|
||||||
liveContainerIdResultSet.next();
|
liveContainerIdResultSet.next();
|
||||||
liveContainerId = liveContainerIdResultSet
|
liveContainerId = liveContainerIdResultSet
|
||||||
.getLong("nextval");
|
.getLong("nextval");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -10,29 +11,30 @@ import java.util.UUID;
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2018 LibreCCM Foundation.
|
* Copyright (C) 2018 LibreCCM Foundation.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or modify it under
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* the terms of the GNU Lesser General Public License as published by the Free
|
||||||
* License as published by the Free Software Foundation; either
|
* Software Foundation; either version 2.1 of the License, or (at your option)
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
* any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful, but WITHOUT
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
||||||
* Lesser General Public License for more details.
|
* details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* License along with this library; if not, write to the Free Software
|
* along with this library; if not, write to the Free Software Foundation, Inc.,
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
* MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveParties = connection
|
||||||
.prepareStatement("select PARTY_ID from CCM_CORE.PARTIES");
|
.prepareStatement("select PARTY_ID from CCM_CORE.PARTIES");
|
||||||
|
|
@ -59,7 +61,7 @@ public class V7_0_0_27__add_party_uuid implements JdbcMigration {
|
||||||
|
|
||||||
addUuidCol.execute();
|
addUuidCol.execute();
|
||||||
|
|
||||||
while(partyIds.next()) {
|
while (partyIds.next()) {
|
||||||
|
|
||||||
setUuid.setString(1, UUID.randomUUID().toString());
|
setUuid.setString(1, UUID.randomUUID().toString());
|
||||||
setUuid.setLong(2, partyIds.getLong("PARTY_ID"));
|
setUuid.setLong(2, partyIds.getLong("PARTY_ID"));
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +31,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveRoles = connection
|
||||||
.prepareStatement("select ROLE_ID from CCM_CORE.CCM_ROLES");
|
.prepareStatement("select ROLE_ID from CCM_CORE.CCM_ROLES");
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrievePermissions = connection
|
||||||
.prepareStatement("select PERMISSION_ID from CCM_CORE.PERMISSIONS");
|
.prepareStatement("select PERMISSION_ID from CCM_CORE.PERMISSIONS");
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveMemberships = connection
|
||||||
.prepareStatement("select MEMBERSHIP_ID "
|
.prepareStatement("select MEMBERSHIP_ID "
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveMemberships = connection
|
||||||
.prepareStatement("select MEMBERSHIP_ID from CCM_CORE.ROLE_MEMBERSHIPS");
|
.prepareStatement("select MEMBERSHIP_ID from CCM_CORE.ROLE_MEMBERSHIPS");
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,11 +30,13 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveOwnerships = connection
|
||||||
.prepareStatement("select OWNERSHIP_ID from CCM_CORE.DOMAIN_OWNERSHIPS");
|
.prepareStatement("select OWNERSHIP_ID from CCM_CORE.DOMAIN_OWNERSHIPS");
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveCategoriations = connection
|
||||||
.prepareStatement("select CATEGORIZATION_ID "
|
.prepareStatement("select CATEGORIZATION_ID "
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveTypes = connection
|
||||||
.prepareStatement("select RESOURCE_TYPE_ID "
|
.prepareStatement("select RESOURCE_TYPE_ID "
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,11 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_35__add_task_assignment_uuid
|
public class V7_0_0_35__add_task_assignment_uuid extends BaseJavaMigration {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@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
|
final PreparedStatement retrieveAssignments = connection
|
||||||
.prepareStatement("select TASK_ASSIGNMENT_ID "
|
.prepareStatement("select TASK_ASSIGNMENT_ID "
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core;
|
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.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
|
@ -29,10 +30,12 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
* @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
|
@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
|
final PreparedStatement retrieveDependencies = connection
|
||||||
.prepareStatement("select TASK_DEPENDENCY_ID "
|
.prepareStatement("select TASK_DEPENDENCY_ID "
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_23__move_components_to_container;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_23__move_components_to_container;
|
||||||
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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_23__move_components_to_container_h2
|
public class V7_0_0_23__move_components_to_container_h2
|
||||||
extends V7_0_0_23__move_components_to_container
|
extends V7_0_0_23__move_components_to_container {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_27__add_party_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_27__add_party_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_27__add_party_uuid_h2
|
public class V7_0_0_27__add_party_uuid_h2
|
||||||
extends V7_0_0_27__add_party_uuid
|
extends V7_0_0_27__add_party_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_28__add_role_uuid;
|
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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_28__add_role_uuid_h2
|
public class V7_0_0_28__add_role_uuid_h2
|
||||||
extends V7_0_0_28__add_role_uuid
|
extends V7_0_0_28__add_role_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_29__add_permission_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_29__add_permission_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_29__add_permission_uuid_h2
|
public class V7_0_0_29__add_permission_uuid_h2
|
||||||
extends V7_0_0_29__add_permission_uuid
|
extends V7_0_0_29__add_permission_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_30__add_groupmembership_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_30__add_groupmembership_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_30__add_groupmembership_uuid_h2
|
public class V7_0_0_30__add_groupmembership_uuid_h2
|
||||||
extends V7_0_0_30__add_groupmembership_uuid
|
extends V7_0_0_30__add_groupmembership_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_31__add_rolemembership_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_31__add_rolemembership_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_31__add_rolemembership_uuid_h2
|
public class V7_0_0_31__add_rolemembership_uuid_h2
|
||||||
extends V7_0_0_31__add_rolemembership_uuid
|
extends V7_0_0_31__add_rolemembership_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_32__add_domain_ownership_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_32__add_domain_ownership_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_32__add_domain_ownership_uuid_h2
|
public class V7_0_0_32__add_domain_ownership_uuid_h2
|
||||||
extends V7_0_0_32__add_domain_ownership_uuid
|
extends V7_0_0_32__add_domain_ownership_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_33__add_categorization_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_33__add_categorization_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_33__add_categorization_uuid_h2
|
public class V7_0_0_33__add_categorization_uuid_h2
|
||||||
extends V7_0_0_33__add_categorization_uuid
|
extends V7_0_0_33__add_categorization_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_34__add_resourcetype_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_34__add_resourcetype_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_34__add_resourcetype_uuid_h2
|
public class V7_0_0_34__add_resourcetype_uuid_h2
|
||||||
extends V7_0_0_34__add_resourcetype_uuid
|
extends V7_0_0_34__add_resourcetype_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_35__add_task_assignment_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_35__add_task_assignment_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_35__add_task_assignment_uuid_h2
|
public class V7_0_0_35__add_task_assignment_uuid_h2
|
||||||
extends V7_0_0_35__add_task_assignment_uuid
|
extends V7_0_0_35__add_task_assignment_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.h2;
|
package db.migrations.org.libreccm.ccm_core.h2;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_36__add_task_dependency_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_36__add_task_dependency_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_36__add_task_dependency_uuid_h2
|
public class V7_0_0_36__add_task_dependency_uuid_h2
|
||||||
extends V7_0_0_36__add_task_dependency_uuid
|
extends V7_0_0_36__add_task_dependency_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_23__move_components_to_container;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_23__move_components_to_container;
|
||||||
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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_23__move_components_to_container_pgsql
|
public class V7_0_0_23__move_components_to_container_pgsql
|
||||||
extends V7_0_0_23__move_components_to_container
|
extends V7_0_0_23__move_components_to_container {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,19 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_27__add_party_uuid;
|
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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_27__add_party_uuid_pgsql
|
public class V7_0_0_27__add_party_uuid_pgsql
|
||||||
extends V7_0_0_27__add_party_uuid
|
extends V7_0_0_27__add_party_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,23 +18,20 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
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 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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_28__add_role_uuid_pgsql
|
public class V7_0_0_28__add_role_uuid_pgsql
|
||||||
extends V7_0_0_28__add_role_uuid
|
extends V7_0_0_28__add_role_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,23 +18,19 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
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 db.migrations.org.libreccm.ccm_core.V7_0_0_29__add_permission_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_29__add_permission_uuid_pgsql
|
public class V7_0_0_29__add_permission_uuid_pgsql
|
||||||
extends V7_0_0_29__add_permission_uuid
|
extends V7_0_0_29__add_permission_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_30__add_groupmembership_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_30__add_groupmembership_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_30__add_groupmembership_uuid_pgsql
|
public class V7_0_0_30__add_groupmembership_uuid_pgsql
|
||||||
extends V7_0_0_30__add_groupmembership_uuid
|
extends V7_0_0_30__add_groupmembership_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_31__add_rolemembership_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_31__add_rolemembership_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_31__add_rolemembership_uuid_pgsql
|
public class V7_0_0_31__add_rolemembership_uuid_pgsql
|
||||||
extends V7_0_0_31__add_rolemembership_uuid
|
extends V7_0_0_31__add_rolemembership_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_32__add_domain_ownership_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_32__add_domain_ownership_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_32__add_domain_ownership_uuid_pgsql
|
public class V7_0_0_32__add_domain_ownership_uuid_pgsql
|
||||||
extends V7_0_0_32__add_domain_ownership_uuid
|
extends V7_0_0_32__add_domain_ownership_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,23 +18,19 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
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 db.migrations.org.libreccm.ccm_core.V7_0_0_33__add_categorization_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_33__add_categorization_uuid_pgsql
|
public class V7_0_0_33__add_categorization_uuid_pgsql
|
||||||
extends V7_0_0_33__add_categorization_uuid
|
extends V7_0_0_33__add_categorization_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,23 +18,19 @@
|
||||||
*/
|
*/
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
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 db.migrations.org.libreccm.ccm_core.V7_0_0_34__add_resourcetype_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_34__add_resourcetype_uuid_pgsql
|
public class V7_0_0_34__add_resourcetype_uuid_pgsql
|
||||||
extends V7_0_0_34__add_resourcetype_uuid
|
extends V7_0_0_34__add_resourcetype_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_35__add_task_assignment_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_35__add_task_assignment_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_35__add_task_assignment_uuid_pgsql
|
public class V7_0_0_35__add_task_assignment_uuid_pgsql
|
||||||
extends V7_0_0_35__add_task_assignment_uuid
|
extends V7_0_0_35__add_task_assignment_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,18 @@
|
||||||
package db.migrations.org.libreccm.ccm_core.pgsql;
|
package db.migrations.org.libreccm.ccm_core.pgsql;
|
||||||
|
|
||||||
import db.migrations.org.libreccm.ccm_core.V7_0_0_36__add_task_dependency_uuid;
|
import db.migrations.org.libreccm.ccm_core.V7_0_0_36__add_task_dependency_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>
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
*/
|
*/
|
||||||
public class V7_0_0_36__add_task_dependency_uuid_pgsql
|
public class V7_0_0_36__add_task_dependency_uuid_pgsql
|
||||||
extends V7_0_0_36__add_task_dependency_uuid
|
extends V7_0_0_36__add_task_dependency_uuid {
|
||||||
implements JdbcMigration {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrate(final Connection connection) throws Exception {
|
public void migrate(final Context context) throws Exception {
|
||||||
super.migrate(connection);
|
super.migrate(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue