Skip to content

Commit

Permalink
0003640: Oracle sequence noorder does not need extra index
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jul 20, 2018
1 parent 79972b4 commit fad8193
Showing 1 changed file with 0 additions and 15 deletions.
Expand Up @@ -390,20 +390,5 @@ public PermissionType[] getSymTablePermissions() {
PermissionType[] permissions = { PermissionType.CREATE_TABLE, PermissionType.DROP_TABLE, PermissionType.CREATE_TRIGGER, PermissionType.DROP_TRIGGER, PermissionType.EXECUTE};
return permissions;
}

@Override
protected Database readDatabaseFromXml(String resourceName) throws IOException {
Database database = super.readDatabaseFromXml(resourceName);
if (parameterService.is(ParameterConstants.DBDIALECT_ORACLE_SEQUENCE_NOORDER, false)) {
Table table = database.findTable(TableConstants.SYM_DATA);
if (table != null) {
NonUniqueIndex index = new NonUniqueIndex("idx_crt_tm_dt_d");
index.addColumn(new IndexColumn(table.findColumn("create_time")));
index.addColumn(new IndexColumn(table.findColumn("data_id")));
table.addIndex(index);
}
}
return database;
}

}

0 comments on commit fad8193

Please sign in to comment.