mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
Removed the JobDatabase since it's no longer used
This commit is contained in:
parent
8ce6e997aa
commit
9b7fb3dd86
@ -1,71 +0,0 @@
|
|||||||
package org.thoughtcrime.securesms.database;
|
|
||||||
|
|
||||||
import android.content.Context;
|
|
||||||
import org.thoughtcrime.securesms.database.helpers.SQLCipherOpenHelper;
|
|
||||||
|
|
||||||
public class JobDatabase extends Database {
|
|
||||||
|
|
||||||
public static final String[] CREATE_TABLE = new String[] { Jobs.CREATE_TABLE,
|
|
||||||
Constraints.CREATE_TABLE,
|
|
||||||
Dependencies.CREATE_TABLE };
|
|
||||||
|
|
||||||
public static final class Jobs {
|
|
||||||
public static final String TABLE_NAME = "job_spec";
|
|
||||||
private static final String ID = "_id";
|
|
||||||
private static final String JOB_SPEC_ID = "job_spec_id";
|
|
||||||
private static final String FACTORY_KEY = "factory_key";
|
|
||||||
private static final String QUEUE_KEY = "queue_key";
|
|
||||||
private static final String CREATE_TIME = "create_time";
|
|
||||||
private static final String NEXT_RUN_ATTEMPT_TIME = "next_run_attempt_time";
|
|
||||||
private static final String RUN_ATTEMPT = "run_attempt";
|
|
||||||
private static final String MAX_ATTEMPTS = "max_attempts";
|
|
||||||
private static final String MAX_BACKOFF = "max_backoff";
|
|
||||||
private static final String MAX_INSTANCES = "max_instances";
|
|
||||||
private static final String LIFESPAN = "lifespan";
|
|
||||||
private static final String SERIALIZED_DATA = "serialized_data";
|
|
||||||
private static final String IS_RUNNING = "is_running";
|
|
||||||
|
|
||||||
private static final String CREATE_TABLE = "CREATE TABLE " + TABLE_NAME + "(" + ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
|
|
||||||
JOB_SPEC_ID + " TEXT UNIQUE, " +
|
|
||||||
FACTORY_KEY + " TEXT, " +
|
|
||||||
QUEUE_KEY + " TEXT, " +
|
|
||||||
CREATE_TIME + " INTEGER, " +
|
|
||||||
NEXT_RUN_ATTEMPT_TIME + " INTEGER, " +
|
|
||||||
RUN_ATTEMPT + " INTEGER, " +
|
|
||||||
MAX_ATTEMPTS + " INTEGER, " +
|
|
||||||
MAX_BACKOFF + " INTEGER, " +
|
|
||||||
MAX_INSTANCES + " INTEGER, " +
|
|
||||||
LIFESPAN + " INTEGER, " +
|
|
||||||
SERIALIZED_DATA + " TEXT, " +
|
|
||||||
IS_RUNNING + " INTEGER)";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final class Constraints {
|
|
||||||
public static final String TABLE_NAME = "constraint_spec";
|
|
||||||
private static final String ID = "_id";
|
|
||||||
private static final String JOB_SPEC_ID = "job_spec_id";
|
|
||||||
private static final String FACTORY_KEY = "factory_key";
|
|
||||||
|
|
||||||
private static final String CREATE_TABLE = "CREATE TABLE " + TABLE_NAME + "(" + ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
|
|
||||||
JOB_SPEC_ID + " TEXT, " +
|
|
||||||
FACTORY_KEY + " TEXT, " +
|
|
||||||
"UNIQUE(" + JOB_SPEC_ID + ", " + FACTORY_KEY + "))";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final class Dependencies {
|
|
||||||
public static final String TABLE_NAME = "dependency_spec";
|
|
||||||
private static final String ID = "_id";
|
|
||||||
private static final String JOB_SPEC_ID = "job_spec_id";
|
|
||||||
private static final String DEPENDS_ON_JOB_SPEC_ID = "depends_on_job_spec_id";
|
|
||||||
|
|
||||||
private static final String CREATE_TABLE = "CREATE TABLE " + TABLE_NAME + "(" + ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
|
|
||||||
JOB_SPEC_ID + " TEXT, " +
|
|
||||||
DEPENDS_ON_JOB_SPEC_ID + " TEXT, " +
|
|
||||||
"UNIQUE(" + JOB_SPEC_ID + ", " + DEPENDS_ON_JOB_SPEC_ID + "))";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public JobDatabase(Context context, SQLCipherOpenHelper databaseHelper) {
|
|
||||||
super(context, databaseHelper);
|
|
||||||
}
|
|
||||||
}
|
|
@ -24,7 +24,6 @@ import org.thoughtcrime.securesms.database.EmojiSearchDatabase;
|
|||||||
import org.thoughtcrime.securesms.database.GroupDatabase;
|
import org.thoughtcrime.securesms.database.GroupDatabase;
|
||||||
import org.thoughtcrime.securesms.database.GroupMemberDatabase;
|
import org.thoughtcrime.securesms.database.GroupMemberDatabase;
|
||||||
import org.thoughtcrime.securesms.database.GroupReceiptDatabase;
|
import org.thoughtcrime.securesms.database.GroupReceiptDatabase;
|
||||||
import org.thoughtcrime.securesms.database.JobDatabase;
|
|
||||||
import org.thoughtcrime.securesms.database.LokiAPIDatabase;
|
import org.thoughtcrime.securesms.database.LokiAPIDatabase;
|
||||||
import org.thoughtcrime.securesms.database.LokiBackupFilesDatabase;
|
import org.thoughtcrime.securesms.database.LokiBackupFilesDatabase;
|
||||||
import org.thoughtcrime.securesms.database.LokiMessageDatabase;
|
import org.thoughtcrime.securesms.database.LokiMessageDatabase;
|
||||||
@ -284,9 +283,6 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
|||||||
for (String sql : SearchDatabase.CREATE_TABLE) {
|
for (String sql : SearchDatabase.CREATE_TABLE) {
|
||||||
db.execSQL(sql);
|
db.execSQL(sql);
|
||||||
}
|
}
|
||||||
for (String sql : JobDatabase.CREATE_TABLE) {
|
|
||||||
db.execSQL(sql);
|
|
||||||
}
|
|
||||||
db.execSQL(LokiAPIDatabase.getCreateSnodePoolTableCommand());
|
db.execSQL(LokiAPIDatabase.getCreateSnodePoolTableCommand());
|
||||||
db.execSQL(LokiAPIDatabase.getCreateOnionRequestPathTableCommand());
|
db.execSQL(LokiAPIDatabase.getCreateOnionRequestPathTableCommand());
|
||||||
db.execSQL(LokiAPIDatabase.getCreateSwarmTableCommand());
|
db.execSQL(LokiAPIDatabase.getCreateSwarmTableCommand());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user