Skip to content

Instantly share code, notes, and snippets.

@gokmenbayram
Last active November 14, 2022 07:06
Show Gist options
  • Save gokmenbayram/11aebb0cb8d35834c24ba9e26b74b469 to your computer and use it in GitHub Desktop.
Save gokmenbayram/11aebb0cb8d35834c24ba9e26b74b469 to your computer and use it in GitHub Desktop.
Manual Migration
val MIGRATION_1_2 = object : Migration(1, 2) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("ALTER TABLE User ADD COLUMN age INTEGER")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment