Skip to content

Commit 730bd50

Browse files
authored
Update README.md
1 parent c43b84f commit 730bd50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# kotlin-db-migration
22

3+
## Trait
34
1. simple & light
45
1. name based version
56
1. support dry run
67
1. support code migration and sql migration
78

9+
## With Spring
810
```kotlin
911
@Component
1012
class Migration: InitializingBean, ApplicationListener<ApplicationReadyEvent>{
@@ -44,8 +46,9 @@ class M2018_03_15_105104_test_migration: CodeMigration<ApplicationContext> {
4446
}
4547
```
4648

49+
## Gradle task help create migration
4750
```gradle
48-
// ./gradlew :common:createMigration -Ptp=code -Pmn=create_role_table
51+
// ./gradlew createMigration -Ptp=code -Pmn=create_role_table
4952
createMigration.doLast {
5053
if (project.hasProperty('mn')) {
5154
def content = "\n"

0 commit comments

Comments
 (0)