Skip to content
Snippets Groups Projects
Verified Commit aeeeeb0b authored by Martin Weise's avatar Martin Weise
Browse files

Set versioned

parent 52fc94fa
Branches
Tags
3 merge requests!256Master,!254Master,!253Dev
...@@ -338,6 +338,7 @@ public class MariaDbServiceImpl extends HibernateConnector implements DatabaseSe ...@@ -338,6 +338,7 @@ public class MariaDbServiceImpl extends HibernateConnector implements DatabaseSe
log.debug("table with name {} is not system-versioned", table.getInternalName()); log.debug("table with name {} is not system-versioned", table.getInternalName());
final PreparedStatement preparedStatement2 = queryMapper.tableEnableSystemVersioning(connection, table.getDatabase().getInternalName(), table.getInternalName()); final PreparedStatement preparedStatement2 = queryMapper.tableEnableSystemVersioning(connection, table.getDatabase().getInternalName(), table.getInternalName());
preparedStatement2.execute(); preparedStatement2.execute();
table.setIsVersioned(true);
log.info("Enabled system-versioning for table with name {}", table.getInternalName()); log.info("Enabled system-versioning for table with name {}", table.getInternalName());
} }
table.setConstraints(Constraints.builder() table.setConstraints(Constraints.builder()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment