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