1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2025-02-20 21:24:44 +01:00

Fix 29 migration (#146)

This commit is contained in:
Mikołaj Pich 2018-07-15 19:02:49 +02:00 committed by Rafał Borcz
parent 4b93a76693
commit c4792289ef

View File

@ -32,7 +32,7 @@ class Migration29 : DbHelper.Migration {
private fun modifyStudents(db: Database) {
db.execSQL("ALTER TABLE Students ADD COLUMN school_id INTEGER")
db.execSQL("UPDATE Students SET (school_id) = ('1')")
db.execSQL("UPDATE Students SET school_id = '1'")
}
private fun getRealSchoolId(db: Database): String {