2019-02-04 20:08:30 +00:00
.class final L androidx/work/impl/WorkDatabaseMigrations$1 ;
.super L androidx/room/migration/Migration ;
2019-02-04 20:29:01 +00:00
.source "WorkDatabaseMigrations.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system L dalvik/annotation/EnclosingClass ;
value = L androidx/work/impl/WorkDatabaseMigrations ;
.end annotation
.annotation system L dalvik/annotation/InnerClass ;
accessFlags = 0x8
name = null
.end annotation
# direct methods
.method constructor <init> ( II ) V
.locals 0
invoke-direct { p0 , p1 , p2 } , L androidx/room/migration/Migration ;-> <init> ( II ) V
return-void
.end method
# virtual methods
.method public final migrate ( L androidx/sqlite/db/SupportSQLiteDatabase ;) V
.locals 1
. param p1 # Landroidx/sqlite/db/SupportSQLiteDatabase;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
const-string v0 , "CREATE TABLE IF NOT EXISTS `SystemIdInfo` (`work_spec_id` TEXT NOT NULL, `system_id` INTEGER NOT NULL, PRIMARY KEY(`work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )"
invoke-interface { p1 , v0 } , L androidx/sqlite/db/SupportSQLiteDatabase ;-> execSQL ( L java/lang/String ;) V
const-string v0 , "INSERT INTO SystemIdInfo(work_spec_id, system_id) SELECT work_spec_id, alarm_id AS system_id FROM alarmInfo"
invoke-interface { p1 , v0 } , L androidx/sqlite/db/SupportSQLiteDatabase ;-> execSQL ( L java/lang/String ;) V
const-string v0 , "DROP TABLE IF EXISTS alarmInfo"
invoke-interface { p1 , v0 } , L androidx/sqlite/db/SupportSQLiteDatabase ;-> execSQL ( L java/lang/String ;) V
const-string v0 , "INSERT OR IGNORE INTO worktag(tag, work_spec_id) SELECT worker_class_name AS tag, id AS work_spec_id FROM workspec"
invoke-interface { p1 , v0 } , L androidx/sqlite/db/SupportSQLiteDatabase ;-> execSQL ( L java/lang/String ;) V
return-void
.end method