We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c43b84f commit 730bd50Copy full SHA for 730bd50
README.md
@@ -1,10 +1,12 @@
1
# kotlin-db-migration
2
3
+## Trait
4
1. simple & light
5
1. name based version
6
1. support dry run
7
1. support code migration and sql migration
8
9
+## With Spring
10
```kotlin
11
@Component
12
class Migration: InitializingBean, ApplicationListener<ApplicationReadyEvent>{
@@ -44,8 +46,9 @@ class M2018_03_15_105104_test_migration: CodeMigration<ApplicationContext> {
44
46
}
45
47
```
48
49
+## Gradle task help create migration
50
```gradle
- // ./gradlew :common:createMigration -Ptp=code -Pmn=create_role_table
51
+ // ./gradlew createMigration -Ptp=code -Pmn=create_role_table
52
createMigration.doLast {
53
if (project.hasProperty('mn')) {
54
def content = "\n"
0 commit comments