mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
32 lines
1.8 KiB
Java
32 lines
1.8 KiB
Java
|
package androidx.work.impl;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import androidx.room.migration.Migration;
|
||
|
import androidx.sqlite.db.SupportSQLiteDatabase;
|
||
|
import androidx.work.impl.utils.IdGeneratorKt;
|
||
|
import androidx.work.impl.utils.PreferenceUtils;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: WorkDatabaseMigrations.kt */
|
||
|
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"Landroidx/work/impl/WorkMigration9To10;", "Landroidx/room/migration/Migration;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "migrate", "", "db", "Landroidx/sqlite/db/SupportSQLiteDatabase;", "work-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class WorkMigration9To10 extends Migration {
|
||
|
private final Context context;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public WorkMigration9To10(Context context) {
|
||
|
super(9, 10);
|
||
|
Intrinsics.checkNotNullParameter(context, "context");
|
||
|
this.context = context;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.room.migration.Migration
|
||
|
public void migrate(SupportSQLiteDatabase db) {
|
||
|
Intrinsics.checkNotNullParameter(db, "db");
|
||
|
db.execSQL(PreferenceUtils.CREATE_PREFERENCE);
|
||
|
PreferenceUtils.migrateLegacyPreferences(this.context, db);
|
||
|
IdGeneratorKt.migrateLegacyIdGenerator(this.context, db);
|
||
|
}
|
||
|
}
|