-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
f43nd1r
committed
May 26, 2020
1 parent
40bfd93
commit 155bfad
Showing
5 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
acrarium/src/main/kotlin/com/faendir/acra/liquibase/changelog/v0/m10/m7/Attachment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.faendir.acra.liquibase.changelog.v0.m10.m7 | ||
|
||
import com.faendir.acra.liquibase.changelog.AUTHOR | ||
import com.faendir.acra.liquibase.changelog.ColumnType | ||
import liquibase.changelog.DatabaseChangeLog | ||
import org.liquibase.kotlin.KotlinDatabaseChangeLogDefinition | ||
|
||
class Attachment : KotlinDatabaseChangeLogDefinition { | ||
override fun define(): DatabaseChangeLog { | ||
return changeLog { | ||
changeSet("0.10.7-fix-content-column-name", AUTHOR.F43ND1R) { | ||
renameColumn(tableName = "attachment", oldColumnName = "conent", newColumnName = "content", columnDataType = ColumnType.BLOB) | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
acrarium/src/main/kotlin/com/faendir/acra/liquibase/changelog/v0/m10/m7/V0_10_7.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.faendir.acra.liquibase.changelog.v0.m10.m7 | ||
|
||
import org.liquibase.kotlin.KotlinDatabaseChangeLogDefinition | ||
|
||
class V0_10_7 : KotlinDatabaseChangeLogDefinition { | ||
override fun define() = changeLog { | ||
include(Version::class.java) | ||
include(Attachment::class.java) | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
acrarium/src/main/kotlin/com/faendir/acra/liquibase/changelog/v0/m10/m7/Version.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.faendir.acra.liquibase.changelog.v0.m10.m7 | ||
|
||
import com.faendir.acra.liquibase.changelog.AUTHOR | ||
import com.faendir.acra.liquibase.changelog.ColumnType | ||
import liquibase.changelog.DatabaseChangeLog | ||
import org.liquibase.kotlin.KotlinDatabaseChangeLogDefinition | ||
|
||
class Version : KotlinDatabaseChangeLogDefinition { | ||
override fun define(): DatabaseChangeLog { | ||
return changeLog { | ||
changeSet("0.10.7-nullable-mappings", AUTHOR.F43ND1R) { | ||
dropNotNullConstraint(tableName = "version", columnName = "mappings", columnDataType = ColumnType.TEXT) | ||
} | ||
} | ||
} | ||
} |