Files
alfresco-community-repo/source/test-resources/schemacomp/xml_to_schema_test.xml
Matt Ward cc28ee3413 ALF-11670: Add autoincrement boolean property to columns
Columns now have a property to describe whether it has been defined as an auto-increment column, e.g. AUTO_INCREMENT for MySQL. The property is persisted in XML reference files, loaded from XML reference files and compared between schemas.

The MySQL reference file has been updated to include autoincrement values.




git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-12-12 18:28:10 +00:00

56 lines
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Test data used by the XMLToSchemaTest junit test class.
-->
<schema name="alfresco">
<objects>
<table name="node">
<columns>
<column name="id" order="1">
<type>NUMBER(10)</type>
<nullable>false</nullable>
<autoincrement>true</autoincrement>
</column>
<column name="nodeRef" order="3">
<type>VARCHAR2(200)</type>
<nullable>false</nullable>
</column>
<column name="name" order="2">
<type>VARCHAR2(150)</type>
<nullable>true</nullable>
</column>
</columns>
<primarykey name="pk_node">
<columnnames>
<columnname order="1">id</columnname>
</columnnames>
</primarykey>
<foreignkeys>
<foreignkey name="fk_node_noderef">
<localcolumn>nodeRef</localcolumn>
<targettable>node</targettable>
<targetcolumn>nodeRef</targetcolumn>
</foreignkey>
</foreignkeys>
<indexes>
<index name="idx_node_by_id" unique="true">
<columnnames>
<columnname>id</columnname>
<columnname>nodeRef</columnname>
</columnnames>
<validators>
<validator class="org.alfresco.util.schemacomp.validator.NameValidator">
<properties>
<property name="pattern">idx_.+</property>
</properties>
</validator>
</validators>
</index>
</indexes>
</table>
<sequence name="node_seq"/>
<sequence name="person_seq"/>
<sequence name="content_seq"/>
</objects>
</schema>