Skip to content

Instantly share code, notes, and snippets.

View Pekwerike's full-sized avatar
💭
Building

pc ekwerike Pekwerike

💭
Building
View GitHub Profile
WEBVTT
00:01.000 --> 00:06.000
Prosper's custom caption!!! haha, this is funnn
00:07.000 --> 00:10.000
Real life translatorrr
00:11.000 --> 00:30.00
Dying to self, out to live a life of no regrets!
val MIGRATION_3_4 = object : Migration(3, 4){
override fun migrate(database: SupportSQLiteDatabase) {
//create new table
database.execSQL("CREATE TABLE `new_course_table`(`course_index_key` INTEGER NOT NULL," +
" `course_code` TEXT NOT NULL," +
" `course_title` TEXT NOT NULL, " +
"`course_unit` INTEGER NOT NULL," +
" `course_status` TEXT," +
" `course_date_added` INTEGER," +
" PRIMARY KEY(`course_index_key`) )")
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>" )
}
}