String tableName;
ISchemaUpdaterStep step;
String newColumnName;
+ String query;
List<ISchemaUpdaterStep> stepList = new ArrayList<>();
null, null, "nom. val.", uuidLanguage);
stepList.add(step);
+ //... idInVoc
stepName = "nom valid => nom. val. (idInVocabulary)";
- String query = "UPDATE @@DefinedTermBase@@ SET idInVocabulary = 'nom. val.' WHERE uuid = '" + uuidTerm + "'";
+ query = "UPDATE @@DefinedTermBase@@ "
+ + " SET idInVocabulary = 'nom. val.' "
+ + " WHERE uuid = '" + uuidTerm + "'";
tableName = "DefinedTermBase";
step = SimpleSchemaUpdaterStep.NewAuditedInstance(stepName, query, tableName, -99);
stepList.add(step);
step = ColumnAdder.NewStringInstance(stepName, tableName, newColumnName, length, INCLUDE_AUDIT);
stepList.add(step);
+ //#6879 Update uuid and name for admin user group
+ stepName = "nom valid => nom. val. (idInVocabulary)";
+ query = "UPDATE @@PermissionGroup@@ "
+ + " SET uuid='1739df71-bf73-4dc6-8320-aaaf72cb555f', name='Admin' "
+ + " WHERE name='admin' or name='Admin'";
+ tableName = "PermissionGroup";
+ step = SimpleSchemaUpdaterStep.NewAuditedInstance(stepName, query, tableName, -99);
+ stepList.add(step);
+
+
+
+
// //#5149 remove unique index on Sequence_Reference.citations_id