Class MigrationUtil

java.lang.Object
org.openmetadata.service.migration.utils.v110.MigrationUtil

public class MigrationUtil extends Object
  • 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

      public static void updateFQNHashTagUsage(CollectionDAO collectionDAO)
    • performSqlExecutionAndUpdate

      public static void performSqlExecutionAndUpdate(org.jdbi.v3.core.Handle handle, MigrationDAO migrationDAO, List<String> queryList, String version)
    • getTestSuite

      public static TestSuite getTestSuite(CollectionDAO dao, CreateTestSuite create, String user)
    • copy

      public static TestSuite copy(TestSuite entity, CreateEntity request, String updatedBy)
    • testSuitesMigration

      public static void testSuitesMigration(CollectionDAO collectionDAO)
      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

      public static Map<String,ArrayList<TestCase>> groupTestCasesByTable()