blob: 6b4d52e6cd6d254b0f2ac829872d21f4c46bf1f0 [file] [log] [blame]
package foo.bar
import androidx.room.migration.AutoMigrationSpec
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import javax.`annotation`.processing.Generated
import kotlin.Suppress
import kotlin.Unit
@Generated(value = ["androidx.room.RoomProcessor"])
@Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION"])
internal class MyDatabase_AutoMigration_1_2_Impl : Migration {
private val callback: AutoMigrationSpec = ValidAutoMigrationWithDefault()
public constructor() : super(1, 2)
public override fun migrate(db: SupportSQLiteDatabase): Unit {
db.execSQL("ALTER TABLE `Song` ADD COLUMN `artistId` INTEGER NOT NULL DEFAULT 0")
callback.onPostMigrate(db)
}
}