aboutsummaryrefslogtreecommitdiff
path: root/schema/changelog-3.12.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-06 21:35:50 -0700
committerGitHub <noreply@github.com>2017-06-06 21:35:50 -0700
commita02f40019c45d7c90b1e8e3de1358352ef58f6c3 (patch)
treee74d5f088e352125377918cc35e29398f4264270 /schema/changelog-3.12.xml
parent0d5b1440503ee50127554e0664b0ae7cbf9a25fd (diff)
parentf5b6dacb24e7694b60fb01ace87e90cc2bd7d91a (diff)
downloadtrackermap-server-a02f40019c45d7c90b1e8e3de1358352ef58f6c3.tar.gz
trackermap-server-a02f40019c45d7c90b1e8e3de1358352ef58f6c3.tar.bz2
trackermap-server-a02f40019c45d7c90b1e8e3de1358352ef58f6c3.zip
Merge pull request #3226 from Abyss777/fix_3223
Fix calendar.data type for postgresql
Diffstat (limited to 'schema/changelog-3.12.xml')
-rw-r--r--schema/changelog-3.12.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/schema/changelog-3.12.xml b/schema/changelog-3.12.xml
index 850287606..efd978532 100644
--- a/schema/changelog-3.12.xml
+++ b/schema/changelog-3.12.xml
@@ -108,4 +108,19 @@
</changeSet>
+ <changeSet author="author" id="changelog-3.12-pgsql">
+
+ <preConditions onFail="MARK_RAN">
+ <dbms type="postgresql" />
+ <sqlCheck expectedResult="oid">SELECT data_type FROM information_schema.columns WHERE table_name = 'calendars' AND column_name = 'data';</sqlCheck>
+ </preConditions>
+ <dropColumn tableName="calendars" columnName="data" />
+ <addColumn tableName="calendars">
+ <column name="data" type="bytea">
+ <constraints nullable="false" />
+ </column>
+ </addColumn>
+
+ </changeSet>
+
</databaseChangeLog>