Class MigrationUtil
java.lang.Object
org.openmetadata.service.migration.utils.v110.MigrationUtil
-
Method Summary
Modifier and TypeMethodDescriptionbuildServerMigrationTable(String version, String statement) static TestSuitecopy(TestSuite entity, CreateEntity request, String updatedBy) static voiddataMigrationFQNHashing(org.jdbi.v3.core.Handle handle, CollectionDAO collectionDAO, int limitParam) static TestSuitegetTestSuite(CollectionDAO dao, CreateTestSuite create, String user) static voidperformSqlExecutionAndUpdate(org.jdbi.v3.core.Handle handle, MigrationDAO migrationDAO, List<String> queryList, String version) static <T extends EntityInterface>
voidreadAndProcessEntity(org.jdbi.v3.core.Handle handle, String updateSql, Class<T> clazz, EntityDAO<T> dao, boolean withName, int limitParam, String nameHashColumn) static voidtestSuitesMigration(CollectionDAO collectionDAO) Test Suites Migration in 1.0.x -> 1.1.4 1.static <T extends EntityInterface>
voidupdateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam) static <T extends EntityInterface>
voidupdateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam, String nameHashColumn) static <T extends EntityInterface>
voidupdateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam) static <T extends EntityInterface>
voidupdateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam, String nameHashColumn) static voidupdateFQNHashTagUsage(CollectionDAO collectionDAO)
-
Method Details
-
updateFQNHashForEntity
public static <T extends EntityInterface> void updateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam) -
updateFQNHashForEntity
public static <T extends EntityInterface> void updateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam, String nameHashColumn) -
updateFQNHashForEntityWithName
public static <T extends EntityInterface> void updateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam) -
updateFQNHashForEntityWithName
public static <T extends EntityInterface> void updateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam, String nameHashColumn) -
readAndProcessEntity
public static <T extends EntityInterface> void readAndProcessEntity(org.jdbi.v3.core.Handle handle, String updateSql, Class<T> clazz, EntityDAO<T> dao, boolean withName, int limitParam, String nameHashColumn) -
buildServerMigrationTable
public static MigrationDAO.ServerMigrationSQLTable buildServerMigrationTable(String version, String statement) -
dataMigrationFQNHashing
public static void dataMigrationFQNHashing(org.jdbi.v3.core.Handle handle, CollectionDAO collectionDAO, int limitParam) -
updateFQNHashTagUsage
-
performSqlExecutionAndUpdate
public static void performSqlExecutionAndUpdate(org.jdbi.v3.core.Handle handle, MigrationDAO migrationDAO, List<String> queryList, String version) -
getTestSuite
-
copy
-
testSuitesMigration
Test Suites Migration in 1.0.x -> 1.1.4 1. This is the first time users are migrating from User created TestSuite to System created native TestSuite Per Table 2. Our Goal with this migration is to list all the test cases and create .testSuite with executable set to true and associate all of the respective test cases with new native test suite. -
groupTestCasesByTable
-