|
|
|
@ -59,7 +59,7 @@ public class SqlDatabaseSchemaService implements DatabaseSchemaService { |
|
|
|
Path schemaFile = Paths.get(this.dataDir, SQL_DIR, SCHEMA_SQL); |
|
|
|
try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { |
|
|
|
String sql = new String(Files.readAllBytes(schemaFile), Charset.forName("UTF-8")); |
|
|
|
conn.prepareStatement(sql).execute(); //NOSONAR, ignoring because method used to load initial thingsboard database schema
|
|
|
|
conn.createStatement().execute(sql); //NOSONAR, ignoring because method used to load initial thingsboard database schema
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|