Permalink
Browse files

Fix Glossary tables support for h2 database

  • Loading branch information...
1 parent ac42531 commit 50b1387718757c289bccabc62e6a570fc976fac8 @aeng aeng committed Mar 26, 2012
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<databaseChangeLog
+ xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
+ xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
+ http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
+
+ <!--
+ This changelog file is the real changelog for Zanata 1.6.
+ -->
+
+ <changeSet author="aeng@redhat.com" id="5" dbms="h2">
+ <comment>Alter glossary tables - add auto increment</comment>
+ <dropUniqueConstraint tableName="HGlossaryTerm" constraintName="UKglossaryterm_glossary_entry_id"/>
+ <dropPrimaryKey tableName="HGlossaryEntry"/>
+
+<!-- <dropUniqueConstraint tableName="HTermComment" constraintName="UKtermComment_glossaryTerm"/> -->
+ <dropPrimaryKey tableName="HGlossaryTerm"/>
+
+ <dropPrimaryKey tableName="HTermComment"/>
+
+ <addAutoIncrement tableName="HGlossaryEntry" columnName="id" columnDataType="bigint"/>
+ <addAutoIncrement tableName="HGlossaryTerm" columnName="id" columnDataType="bigint"/>
+ <addAutoIncrement tableName="HTermComment" columnName="id" columnDataType="bigint"/>
+ </changeSet>
+
+</databaseChangeLog>
@@ -8,4 +8,5 @@
<include relativeToChangelogFile="true" file="changelogs/db.changelog-1.4.xml"/>
<include relativeToChangelogFile="true" file="changelogs/db.changelog-1.5.xml"/>
<include relativeToChangelogFile="true" file="changelogs/db.changelog-1.6.xml"/>
+ <include relativeToChangelogFile="true" file="changelogs/db.changelog-1.6a.xml"/>
</databaseChangeLog>

0 comments on commit 50b1387

Please sign in to comment.