public void createMetadata(List<String> ddl, TableNames tables) {
VersionInfo productVersion = VersionOp.get();
final String table = tables.metadata();
int latestVersion = getLatestSchemaVersion();
ddl.add(format("CREATE TABLE %s (key TEXT PRIMARY KEY, value TEXT, description TEXT);",
table));
ddl.add(format("INSERT INTO %s (key, value) VALUES ('geogig.version', '%s');", table,
productVersion.getProjectVersion()));
ddl.add(format("INSERT INTO %s (key, value) VALUES ('geogig.commit-id', '%s');", table,
productVersion.getCommitId()));
ddl.add(format("INSERT INTO %s (key, value) VALUES ('schema.version', '%s');", table,
latestVersion));
ddl.add(format("INSERT INTO %s (key, value) VALUES ('schema.features.partitions', '16');",
table));
}