mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Schema comparator: added optional <schema> level attribute to allow ignoring of table column ordering during schema validation.
<schema ... tablecolumnorder="false"> The above snippet will disable column order checking for tables. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46517 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -57,7 +57,7 @@ public class SchemaToXMLTest
|
||||
Writer writer = new StringWriter();
|
||||
StreamResult out = new StreamResult(writer);
|
||||
|
||||
Schema schema = new Schema("alfresco", "my-prefix", 501);
|
||||
Schema schema = new Schema("alfresco", "my-prefix", 501, true);
|
||||
|
||||
schema.add(
|
||||
table("node",
|
||||
@@ -84,7 +84,7 @@ public class SchemaToXMLTest
|
||||
"xmlns=\"http://www.alfresco.org/repo/db-schema\" " +
|
||||
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " +
|
||||
"xsi:schemaLocation=\"http://www.alfresco.org/repo/db-schema db-schema.xsd\"";
|
||||
assertEquals("<schema " + xsd + " name=\"alfresco\" dbprefix=\"my-prefix\" version=\"501\">", reader.readLine());
|
||||
assertEquals("<schema " + xsd + " name=\"alfresco\" dbprefix=\"my-prefix\" version=\"501\" tablecolumnorder=\"true\">", reader.readLine());
|
||||
assertEquals(" <validators>", reader.readLine());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user