Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I generate GRANTs in Liquibase?

Tags:

liquibase

db2

I have an existing DB2 (10.5.0) project I am migrating to Liquibase (3.4.1), and I want to export my existing schema.

However it is skipping the GRANTs. How do I get those?

Also when I create new tables, indices etc, how can I add GRANT to a role within my changeLogFile.xml?

like image 962
Victor Grazi Avatar asked Oct 12 '15 19:10

Victor Grazi


1 Answers

Liquibase does not currently support GRANTs as they are a database-specific concept. You would need to write the GRANT statements using the <sql> or <sqlFile> change types.

like image 83
SteveDonie Avatar answered Sep 24 '22 08:09

SteveDonie