This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix Glossary tables support for h2 database
- Loading branch information
Alex Eng
committed
Mar 26, 2012
1 parent
ac42531
commit 50b1387
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
server/zanata-war/src/main/resources/db/changelogs/db.changelog-1.6a.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters