Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Liquibase 3.3 with Vertica DB : "DATABASECHANGELOG" already exists

$
0
0
Hi Mohamed,

I've created an initial update for the extension to work with vertica 7.1 on liquibase 3.2.2 (latest stable release)

also note it's better to use XMLs as changes since it can better rollback and manage your changes (it treats SQLs as scripts - it doesn't parse them to know what you want)

an example changeSet could be:
  1. <changeSet id="5" author="test">
  2.     <ext:createTable partitionby="floor((timestamplong / 86400000))" tableName="TEST_VERTICA_2">
  3.         <column name="id" type="INT">
  4.             <constraints nullable="false"/>
  5.         </column>
  6.         <column name="timestamp" type="timestamp">
  7.             <constraints nullable="false"/>
  8.         </column>
  9.         <column name="timestamplong" type="INT" encoding="RLE">
  10.             <constraints nullable="false"/>
  11.         </column>
  12.     </ext:createTable>
  13. </changeSet>
I hope it will prove useful to you :)
Regards,
 - Jony


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>