Grailsデータベース移行プラグインに移行ファイルのプロパティを定義して、Liquibaseで可能なように、データベースに依存しない移行を定義できるようにする方法はありますか?
私は試してみました:
databaseChangeLog = {
property([name:"boolean.type", value:"bit(1)",dbms:"mysql" ])
property([name:"boolean.type", value:"number(1,0)", dbms:"oracle"])
...
}
コロンの定義でそれを使用する:
changeSet(author: "me", id: "121112341-1") {
createTable(tableName: "test_table") {
...
column(name: "my_column", type: "${boolean.type}")
...
}
}
しかし、それは機能しません...