mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-24 17:09:03 +00:00
Merge pull request #1626 from jamesagnew/ks-20191206-migration-nullable-failure
fix MSSQL index rename
This commit is contained in:
commit
5edfb1a2aa
@ -90,8 +90,6 @@ public class RenameIndexTask extends BaseTableTask<RenameIndexTask> {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
boolean isUnique = JdbcUtils.isIndexUnique(theConnectionProperties, theTableName, theOldIndexName);
|
||||
|
||||
List<String> sql = new ArrayList<>();
|
||||
|
||||
// Drop constraint
|
||||
@ -107,8 +105,7 @@ public class RenameIndexTask extends BaseTableTask<RenameIndexTask> {
|
||||
sql.add("alter index " + theOldIndexName + " rename to " + theNewIndexName);
|
||||
break;
|
||||
case MSSQL_2012:
|
||||
// FIXME KHS really?
|
||||
sql.add("EXEC sp_rename '" + theOldIndexName + "', '" + theNewIndexName + "'; GO");
|
||||
sql.add("EXEC sp_rename '" + theTableName + "." + theOldIndexName + "', '" + theNewIndexName + "'");
|
||||
break;
|
||||
}
|
||||
return sql;
|
||||
|
Loading…
x
Reference in New Issue
Block a user