23 lines
1.3 KiB
Java
23 lines
1.3 KiB
Java
|
package o;
|
||
|
|
||
|
import android.database.sqlite.SQLiteDatabase;
|
||
|
import o.C1172XcZ;
|
||
|
|
||
|
/* renamed from: o.hpx, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
final /* synthetic */ class C15701hpx implements C1172XcZ.RVV {
|
||
|
static final C15701hpx d = new C15701hpx();
|
||
|
|
||
|
@Override // o.C1172XcZ.RVV
|
||
|
public final void Hs_(SQLiteDatabase sQLiteDatabase) {
|
||
|
sQLiteDatabase.execSQL("CREATE TABLE events (_id INTEGER PRIMARY KEY, context_id INTEGER NOT NULL, transport_name TEXT NOT NULL, timestamp_ms INTEGER NOT NULL, uptime_ms INTEGER NOT NULL, payload BLOB NOT NULL, code INTEGER, num_attempts INTEGER NOT NULL,FOREIGN KEY (context_id) REFERENCES transport_contexts(_id) ON DELETE CASCADE)");
|
||
|
sQLiteDatabase.execSQL("CREATE TABLE event_metadata (_id INTEGER PRIMARY KEY, event_id INTEGER NOT NULL, name TEXT NOT NULL, value TEXT NOT NULL,FOREIGN KEY (event_id) REFERENCES events(_id) ON DELETE CASCADE)");
|
||
|
sQLiteDatabase.execSQL("CREATE TABLE transport_contexts (_id INTEGER PRIMARY KEY, backend_name TEXT NOT NULL, priority INTEGER NOT NULL, next_request_ms INTEGER NOT NULL)");
|
||
|
sQLiteDatabase.execSQL("CREATE INDEX events_backend_id on events(context_id)");
|
||
|
sQLiteDatabase.execSQL("CREATE UNIQUE INDEX contexts_backend_priority on transport_contexts(backend_name, priority)");
|
||
|
}
|
||
|
|
||
|
private C15701hpx() {
|
||
|
}
|
||
|
}
|