当前位置: 动力学知识库 > 问答 > 编程问答 >

flyway - Schema in placeholder programmatically

问题描述:

I am new to Flyway. Flyway is good and friendly.

I want to create and give schema name for my tables in V1__Initial_structure.sql file. I don't know where to assign value to the placeholder. I have configured Flyway programmatically. My sql file contains,

create schema ${schemaName}

create table ${schemaName}.brand(brand_code IDENTITY,

brand_name varchar(50) unique not null, active char(1) default 'Y')

Please help.

网友答案:

This is the method you are looking for: http://flywaydb.org/documentation/javadoc/com/googlecode/flyway/core/Flyway.html#setPlaceholders(java.util.Map)

分享给朋友:
您可能感兴趣的文章:
随机阅读: