blob: 2e47dabe54eee61a0bc2acf1b794161e10a3de75 [file] [log] [blame]
Matthias Andreas Benkardd5498fc2020-08-23 21:51:00 +02001<?xml version="1.1" encoding="UTF-8" standalone="no"?>
2<databaseChangeLog
3 xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="
6 http://www.liquibase.org/xml/ns/dbchangelog
7 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.10.xsd">
8
9 <changeSet author="mulk" id="1.3-1">
10 <createTable tableName="post_texts" schemaName="benki">
11 <column name="post" type="integer">
12 <constraints
13 nullable="false"
14 primaryKeyName="post_texts_pkey"
15 primaryKey="true"
16 foreignKeyName="post_texts_post_fkey"
17 referencedTableSchemaName="benki"
18 referencedTableName="posts"
19 referencedColumnNames="id"/>
20 </column>
21
22 <column name="language" type="varchar">
23 <constraints
24 nullable="false"
25 primaryKeyName="lazychat_message_texts_pkey"
26 primaryKey="true"
27 checkConstraint="IN ('', 'de', 'en', 'fr', 'ja', 'la')"/>
28 </column>
29 </createTable>
30
31 <renameColumn tableName="lazychat_message_texts" schemaName="benki" oldColumnName="lazychat_message" newColumnName="post"/>
32 <renameColumn tableName="bookmark_texts" schemaName="benki" oldColumnName="bookmark" newColumnName="post"/>
33
34 <sql>
35 ALTER TABLE benki.lazychat_message_texts INHERIT benki.post_texts;
36 </sql>
37
38 <sql>
39 ALTER TABLE benki.bookmark_texts INHERIT benki.post_texts;
40 </sql>
41 </changeSet>
42
43</databaseChangeLog>