9 Commits

Author SHA1 Message Date
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
Matt Ward
56e64bd627 ALF-7260: Fixes NPE on databases other than PostgreSQL and MySQL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32385 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-29 12:59:12 +00:00
Matt Ward
f526d05094 ALF-11370: ExportDbTest expects particular/PostgreSQL schema
* Refactored to allow easier addition of DBMS-specific test implementation.
* Added MySQL test implementation.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32271 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 12:38:24 +00:00
Matt Ward
1e8d689de6 ALF-11414: Sequences must be exported/imported (not directly supported by DatabaseMetadata)
Supported by PostgreSQL - not yet verified against Oracle.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 18:26:32 +00:00
Matt Ward
0369a9b3d0 ALF-11370: ExportDbTest expects particular/PostgreSQL schema
Now creates own test tables, indexes and sequence and runs export test against those (if running PostgreSQL).


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32022 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-16 15:00:58 +00:00
Matt Ward
f5b08ab073 ALF-11256: SchemaBootstrap must compare running schema against reference dump
Reference schemas (e.g. classpath:org/alfresco/util/schemacomp/reference/PostgreSQLDialect-Reference.xml) are loaded (if present) and the database is compared to that reference schema.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-15 15:03:22 +00:00
Matt Ward
4718c76929 Temporarily disabling test that only currently works on PostgreSQL.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-08 11:57:47 +00:00
Matt Ward
067e8fffac ALF-11255: Create tool to dump "reference" schemas to XML
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31650 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-02 18:36:02 +00:00
Matt Ward
68997e630a ALF-11030: Create object graph from real database schema
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31625 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-01 19:19:45 +00:00