2019-02-04 20:08:30 +00:00
.class public L androidx/work/impl/WorkDatabaseMigrations ;
.super L java/lang/Object ;
2019-02-04 20:29:01 +00:00
.source "WorkDatabaseMigrations.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
.annotation system L dalvik/annotation/MemberClasses ;
value = {
L androidx/work/impl/WorkDatabaseMigrations$WorkMigration ;
}
.end annotation
# static fields
.field private static final CREATE_SYSTEM_ID_INFO : L java/lang/String ; = "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 )"
.field private static final MIGRATE_ALARM_INFO_TO_SYSTEM_ID_INFO : L java/lang/String ; = "INSERT INTO SystemIdInfo(work_spec_id, system_id) SELECT work_spec_id, alarm_id AS system_id FROM alarmInfo"
.field public static MIGRATION_1_2 : L androidx/room/migration/Migration ; = null
.field public static MIGRATION_3_4 : L androidx/room/migration/Migration ; = null
2019-02-04 20:32:01 +00:00
.field public static MIGRATION_4_5 : L androidx/room/migration/Migration ; = null
2019-02-04 20:08:30 +00:00
.field private static final PERIODIC_WORK_SET_SCHEDULE_REQUESTED_AT : L java/lang/String ; = "UPDATE workspec SET schedule_requested_at=0 WHERE state NOT IN (2, 3, 5) AND schedule_requested_at=-1 AND interval_duration<>0"
.field private static final REMOVE_ALARM_INFO : L java/lang/String ; = "DROP TABLE IF EXISTS alarmInfo"
.field public static final VERSION_1 : I = 0x1
.field public static final VERSION_2 : I = 0x2
.field public static final VERSION_3 : I = 0x3
.field public static final VERSION_4 : I = 0x4
2019-02-04 20:32:01 +00:00
.field public static final VERSION_5 : I = 0x5
.field private static final WORKSPEC_ADD_TRIGGER_MAX_CONTENT_DELAY : L java/lang/String ; = "ALTER TABLE workspec ADD COLUMN `trigger_max_content_delay` INTEGER NOT NULL DEFAULT -1"
.field private static final WORKSPEC_ADD_TRIGGER_UPDATE_DELAY : L java/lang/String ; = "ALTER TABLE workspec ADD COLUMN `trigger_content_update_delay` INTEGER NOT NULL DEFAULT -1"
2019-02-04 20:08:30 +00:00
# direct methods
.method static constructor <clinit> ( ) V
.locals 3
new-instance v0 , L androidx/work/impl/WorkDatabaseMigrations$1 ;
const/4 v1 , 0x1
const/4 v2 , 0x2
invoke-direct { v0 , v1 , v2 } , L androidx/work/impl/WorkDatabaseMigrations$1 ;-> <init> ( II ) V
sput-object v0 , L androidx/work/impl/WorkDatabaseMigrations ;-> MIGRATION_1_2 : L androidx/room/migration/Migration ;
new-instance v0 , L androidx/work/impl/WorkDatabaseMigrations$2 ;
2019-02-04 20:32:01 +00:00
const/4 v1 , 0x4
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
const/4 v2 , 0x3
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
invoke-direct { v0 , v2 , v1 } , L androidx/work/impl/WorkDatabaseMigrations$2 ;-> <init> ( II ) V
2019-02-04 20:08:30 +00:00
sput-object v0 , L androidx/work/impl/WorkDatabaseMigrations ;-> MIGRATION_3_4 : L androidx/room/migration/Migration ;
2019-02-04 20:32:01 +00:00
new-instance v0 , L androidx/work/impl/WorkDatabaseMigrations$3 ;
const/4 v2 , 0x5
invoke-direct { v0 , v1 , v2 } , L androidx/work/impl/WorkDatabaseMigrations$3 ;-> <init> ( II ) V
sput-object v0 , L androidx/work/impl/WorkDatabaseMigrations ;-> MIGRATION_4_5 : L androidx/room/migration/Migration ;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method private constructor <init> ( ) V
.locals 0
invoke-direct { p0 } , L java/lang/Object ;-> <init> ( ) V
return-void
.end method