Commit 70c3494c017dac3bf8c543d4df11fc1317cb1db8

Authored by YevhenBondarenko
1 parent 2b82223c

fix ts latest migration

@@ -61,9 +61,6 @@ public class CassandraTsLatestToSqlMigrateService implements TsLatestMigrateServ @@ -61,9 +61,6 @@ public class CassandraTsLatestToSqlMigrateService implements TsLatestMigrateServ
61 private static final int MAX_STR_V_LENGTH = 10000000; 61 private static final int MAX_STR_V_LENGTH = 10000000;
62 62
63 @Autowired 63 @Autowired
64 - private EntityDatabaseSchemaService entityDatabaseSchemaService;  
65 -  
66 - @Autowired  
67 private InsertLatestTsRepository insertLatestTsRepository; 64 private InsertLatestTsRepository insertLatestTsRepository;
68 65
69 @Autowired 66 @Autowired
@@ -88,7 +85,6 @@ public class CassandraTsLatestToSqlMigrateService implements TsLatestMigrateServ @@ -88,7 +85,6 @@ public class CassandraTsLatestToSqlMigrateService implements TsLatestMigrateServ
88 @Override 85 @Override
89 public void migrate() throws Exception { 86 public void migrate() throws Exception {
90 log.info("Performing migration of latest timeseries data from cassandra to SQL database ..."); 87 log.info("Performing migration of latest timeseries data from cassandra to SQL database ...");
91 - entityDatabaseSchemaService.createDatabaseSchema(false);  
92 try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { 88 try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) {
93 conn.setAutoCommit(false); 89 conn.setAutoCommit(false);
94 for (CassandraToSqlTable table : tables) { 90 for (CassandraToSqlTable table : tables) {