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

Extending Liquibase CreateTableStatement

$
0
0
I need a simple extension to Liquibase to add a distribution clause to a postgresql variant.  I've created a project with a database that extends PostgresDatabase, a CreateTableGeneratorX that extends CreateTableGenerator and implements generateSql and a CreateTableStatementX that adds the properties that I need to set for the distribution clause.  The generated SQL should look something like:

  1. CREATE TABLE MYTABLE(columns...) distribute by HASH(column1);


I want to add the "distribute by" to the changleLog, XML or SQL DSL.  Can anyone tell me how to do this last part and test it?  The documentation for extension still seems fairly outdated.

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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