YD_AllInOneApp/decompiled/smali/androidx/work/impl/WorkDatabaseMigrations$4.smali
2026-07-06 19:54:44 +08:00

57 lines
1.4 KiB
Smali

.class Landroidx/work/impl/WorkDatabaseMigrations$4;
.super Landroidx/room/migration/Migration;
.source "WorkDatabaseMigrations.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/impl/WorkDatabaseMigrations;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# direct methods
.method constructor <init>(II)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"startVersion",
"endVersion"
}
.end annotation
.line 188
invoke-direct {p0, p1, p2}, Landroidx/room/migration/Migration;-><init>(II)V
return-void
.end method
# virtual methods
.method public migrate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"database"
}
.end annotation
const-string v0, "CREATE TABLE IF NOT EXISTS `WorkProgress` (`work_spec_id` TEXT NOT NULL, `progress` BLOB NOT NULL, PRIMARY KEY(`work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )"
.line 191
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
return-void
.end method