Skip to content

Commit

Permalink
Fix broken room migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbwong committed Feb 22, 2023
1 parent e4e1852 commit 6783d3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MigrationModule {
@[Provides IntoSet StackMigration]
fun provideAnswerShareLinkMigration(): Migration = object : Migration(10, 11) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("ALTER TABLE answer ADD COLUMN shareLink TEXT NOT NULL")
database.execSQL("ALTER TABLE answer ADD COLUMN shareLink TEXT NOT NULL default ''")
}
}
}

0 comments on commit 6783d3a

Please sign in to comment.