Skip to content

Instantly share code, notes, and snippets.

@Pekwerike
Created August 4, 2020 12:39
Show Gist options
  • Save Pekwerike/53214bae439826183b1ff763afc5d3f3 to your computer and use it in GitHub Desktop.
Save Pekwerike/53214bae439826183b1ff763afc5d3f3 to your computer and use it in GitHub Desktop.
val MIGRATION_2_3 = object : Migration(2, 3){
override fun migrate(database: SupportSQLiteDatabase) {
dataBase.execSQL("ALTER TABLE <entity-name> ADD COLUMN <new-column-name> <column-data-type>" )
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment