diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-08-23 21:51:00 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-08-27 21:09:12 +0200 |
commit | d5498fcec7394d2b89667832853e239d5f496e1c (patch) | |
tree | 3d9d6ee6c1c175c22026059f4b44b2d954fac6d9 /src/main/resources/db/changeLog-1.4.xml | |
parent | e9b14f921cdaa0357aa58f4a72f930981b3042fb (diff) |
Add localized texts to Benki post model.
Change-Id: I123cfe2ff06f85dc14c705b21d723d1c68fd2e00
Diffstat (limited to 'src/main/resources/db/changeLog-1.4.xml')
-rw-r--r-- | src/main/resources/db/changeLog-1.4.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/main/resources/db/changeLog-1.4.xml b/src/main/resources/db/changeLog-1.4.xml new file mode 100644 index 0000000..2e47dab --- /dev/null +++ b/src/main/resources/db/changeLog-1.4.xml @@ -0,0 +1,43 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?> +<databaseChangeLog + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + 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-3.10.xsd"> + + <changeSet author="mulk" id="1.3-1"> + <createTable tableName="post_texts" schemaName="benki"> + <column name="post" type="integer"> + <constraints + nullable="false" + primaryKeyName="post_texts_pkey" + primaryKey="true" + foreignKeyName="post_texts_post_fkey" + referencedTableSchemaName="benki" + referencedTableName="posts" + referencedColumnNames="id"/> + </column> + + <column name="language" type="varchar"> + <constraints + nullable="false" + primaryKeyName="lazychat_message_texts_pkey" + primaryKey="true" + checkConstraint="IN ('', 'de', 'en', 'fr', 'ja', 'la')"/> + </column> + </createTable> + + <renameColumn tableName="lazychat_message_texts" schemaName="benki" oldColumnName="lazychat_message" newColumnName="post"/> + <renameColumn tableName="bookmark_texts" schemaName="benki" oldColumnName="bookmark" newColumnName="post"/> + + <sql> + ALTER TABLE benki.lazychat_message_texts INHERIT benki.post_texts; + </sql> + + <sql> + ALTER TABLE benki.bookmark_texts INHERIT benki.post_texts; + </sql> + </changeSet> + +</databaseChangeLog> |