Skip to content

Commit ca2f6cd

Browse files
authored
Merge pull request #10 from altrive/add-dbms-specific-xmlmigration
Update README.md
2 parents abdf259 + 0041fbb commit ca2f6cd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ XML schema is improved from Liquibase to be possible to declare column informati
127127

128128
`SqlMigration` migrates the database by native SQL.
129129

130-
In the default, `SqlMigration` try to load a SQL file from classpath as following order:
130+
### Apply RDBMS specific configuration
131+
In the default, `LiquibaseMigration` and `SqlMigration` try to load a file from classpath as following order:
131132

132-
1. Specified path (if specified)
133-
2. `${moduleId}_${version}_${database}.sql`
134-
3. `${moduleId}_${version}.sql`
135-
136-
It's possible to apply different SQL for each databases by creating multiple SQL files for the same version such as `gitbucket_1.0.0_h2.sql` (for H2 database) and `gitbucket_1.0.0_mysql.sql` (for MySQL).
133+
1. Specified path with `_${database}` name suffix (if specified)
134+
2. Specified path (if specified)
135+
3. `${moduleId}_${version}_${database}.${extension}`
136+
4. `${moduleId}_${version}.${extension}`
137137

138+
It's possible to apply different XML/SQL for each databases by creating multiple files such as `gitbucket_1.0.0_h2.sql` (for H2 database) and `gitbucket_1.0.0_mysql.sql` (for MySQL).

0 commit comments

Comments
 (0)