Skip to content

Commit e55076f

Browse files
committed
Update: Rename DB's name
1 parent 31c7c69 commit e55076f

File tree

3 files changed

+345
-17
lines changed

3 files changed

+345
-17
lines changed

app/schemas/com.machiav3lli.backup.dbs.ODatabase/1.json

Lines changed: 329 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"formatVersion": 1,
33
"database": {
44
"version": 1,
5-
"identityHash": "ca5f4dcf7f10d72b658e69a5ebac19b0",
5+
"identityHash": "9731b02c93edc246d16d447b8399c17f",
66
"entities": [
77
{
88
"tableName": "Schedule",
9-
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `enabled` INTEGER NOT NULL, `timeHour` INTEGER NOT NULL, `timeMinute` INTEGER NOT NULL, `interval` INTEGER NOT NULL, `timePlaced` INTEGER NOT NULL, `filter` INTEGER NOT NULL, `mode` INTEGER NOT NULL, `specialFilter` INTEGER NOT NULL, `timeToRun` INTEGER NOT NULL, `customList` TEXT NOT NULL, `blockList` TEXT NOT NULL)",
9+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `timeHour` INTEGER NOT NULL, `timeMinute` INTEGER NOT NULL, `interval` INTEGER NOT NULL, `timePlaced` INTEGER NOT NULL, `filter` INTEGER NOT NULL, `mode` INTEGER NOT NULL, `specialFilter` INTEGER NOT NULL, `timeToRun` INTEGER NOT NULL, `customList` TEXT NOT NULL, `blockList` TEXT NOT NULL)",
1010
"fields": [
1111
{
1212
"fieldPath": "id",
@@ -18,7 +18,7 @@
1818
"fieldPath": "name",
1919
"columnName": "name",
2020
"affinity": "TEXT",
21-
"notNull": false
21+
"notNull": true
2222
},
2323
{
2424
"fieldPath": "enabled",
@@ -88,10 +88,10 @@
8888
}
8989
],
9090
"primaryKey": {
91+
"autoGenerate": true,
9192
"columnNames": [
9293
"id"
93-
],
94-
"autoGenerate": true
94+
]
9595
},
9696
"indices": [],
9797
"foreignKeys": []
@@ -120,10 +120,10 @@
120120
}
121121
],
122122
"primaryKey": {
123+
"autoGenerate": true,
123124
"columnNames": [
124125
"id"
125-
],
126-
"autoGenerate": true
126+
]
127127
},
128128
"indices": [],
129129
"foreignKeys": []
@@ -158,10 +158,329 @@
158158
}
159159
],
160160
"primaryKey": {
161+
"autoGenerate": true,
161162
"columnNames": [
162163
"id"
163-
],
164-
"autoGenerate": true
164+
]
165+
},
166+
"indices": [],
167+
"foreignKeys": []
168+
},
169+
{
170+
"tableName": "AppInfo",
171+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`enabled` INTEGER NOT NULL, `installed` INTEGER NOT NULL, `apkDir` TEXT, `dataDir` TEXT, `deDataDir` TEXT, `permissions` TEXT NOT NULL, `packageName` TEXT NOT NULL, `packageLabel` TEXT, `versionName` TEXT, `versionCode` INTEGER NOT NULL, `profileId` INTEGER NOT NULL, `sourceDir` TEXT, `splitSourceDirs` TEXT NOT NULL, `isSystem` INTEGER NOT NULL, `icon` INTEGER NOT NULL, PRIMARY KEY(`packageName`))",
172+
"fields": [
173+
{
174+
"fieldPath": "enabled",
175+
"columnName": "enabled",
176+
"affinity": "INTEGER",
177+
"notNull": true
178+
},
179+
{
180+
"fieldPath": "installed",
181+
"columnName": "installed",
182+
"affinity": "INTEGER",
183+
"notNull": true
184+
},
185+
{
186+
"fieldPath": "apkDir",
187+
"columnName": "apkDir",
188+
"affinity": "TEXT",
189+
"notNull": false
190+
},
191+
{
192+
"fieldPath": "dataDir",
193+
"columnName": "dataDir",
194+
"affinity": "TEXT",
195+
"notNull": false
196+
},
197+
{
198+
"fieldPath": "deDataDir",
199+
"columnName": "deDataDir",
200+
"affinity": "TEXT",
201+
"notNull": false
202+
},
203+
{
204+
"fieldPath": "permissions",
205+
"columnName": "permissions",
206+
"affinity": "TEXT",
207+
"notNull": true
208+
},
209+
{
210+
"fieldPath": "packageName",
211+
"columnName": "packageName",
212+
"affinity": "TEXT",
213+
"notNull": true
214+
},
215+
{
216+
"fieldPath": "packageLabel",
217+
"columnName": "packageLabel",
218+
"affinity": "TEXT",
219+
"notNull": false
220+
},
221+
{
222+
"fieldPath": "versionName",
223+
"columnName": "versionName",
224+
"affinity": "TEXT",
225+
"notNull": false
226+
},
227+
{
228+
"fieldPath": "versionCode",
229+
"columnName": "versionCode",
230+
"affinity": "INTEGER",
231+
"notNull": true
232+
},
233+
{
234+
"fieldPath": "profileId",
235+
"columnName": "profileId",
236+
"affinity": "INTEGER",
237+
"notNull": true
238+
},
239+
{
240+
"fieldPath": "sourceDir",
241+
"columnName": "sourceDir",
242+
"affinity": "TEXT",
243+
"notNull": false
244+
},
245+
{
246+
"fieldPath": "splitSourceDirs",
247+
"columnName": "splitSourceDirs",
248+
"affinity": "TEXT",
249+
"notNull": true
250+
},
251+
{
252+
"fieldPath": "isSystem",
253+
"columnName": "isSystem",
254+
"affinity": "INTEGER",
255+
"notNull": true
256+
},
257+
{
258+
"fieldPath": "icon",
259+
"columnName": "icon",
260+
"affinity": "INTEGER",
261+
"notNull": true
262+
}
263+
],
264+
"primaryKey": {
265+
"autoGenerate": false,
266+
"columnNames": [
267+
"packageName"
268+
]
269+
},
270+
"indices": [],
271+
"foreignKeys": []
272+
},
273+
{
274+
"tableName": "SpecialInfo",
275+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`specialFiles` TEXT NOT NULL, `packageName` TEXT NOT NULL, `packageLabel` TEXT, `versionName` TEXT, `versionCode` INTEGER NOT NULL, `profileId` INTEGER NOT NULL, `sourceDir` TEXT, `splitSourceDirs` TEXT NOT NULL, `isSystem` INTEGER NOT NULL, `icon` INTEGER NOT NULL, PRIMARY KEY(`packageName`))",
276+
"fields": [
277+
{
278+
"fieldPath": "specialFiles",
279+
"columnName": "specialFiles",
280+
"affinity": "TEXT",
281+
"notNull": true
282+
},
283+
{
284+
"fieldPath": "packageName",
285+
"columnName": "packageName",
286+
"affinity": "TEXT",
287+
"notNull": true
288+
},
289+
{
290+
"fieldPath": "packageLabel",
291+
"columnName": "packageLabel",
292+
"affinity": "TEXT",
293+
"notNull": false
294+
},
295+
{
296+
"fieldPath": "versionName",
297+
"columnName": "versionName",
298+
"affinity": "TEXT",
299+
"notNull": false
300+
},
301+
{
302+
"fieldPath": "versionCode",
303+
"columnName": "versionCode",
304+
"affinity": "INTEGER",
305+
"notNull": true
306+
},
307+
{
308+
"fieldPath": "profileId",
309+
"columnName": "profileId",
310+
"affinity": "INTEGER",
311+
"notNull": true
312+
},
313+
{
314+
"fieldPath": "sourceDir",
315+
"columnName": "sourceDir",
316+
"affinity": "TEXT",
317+
"notNull": false
318+
},
319+
{
320+
"fieldPath": "splitSourceDirs",
321+
"columnName": "splitSourceDirs",
322+
"affinity": "TEXT",
323+
"notNull": true
324+
},
325+
{
326+
"fieldPath": "isSystem",
327+
"columnName": "isSystem",
328+
"affinity": "INTEGER",
329+
"notNull": true
330+
},
331+
{
332+
"fieldPath": "icon",
333+
"columnName": "icon",
334+
"affinity": "INTEGER",
335+
"notNull": true
336+
}
337+
],
338+
"primaryKey": {
339+
"autoGenerate": false,
340+
"columnNames": [
341+
"packageName"
342+
]
343+
},
344+
"indices": [],
345+
"foreignKeys": []
346+
},
347+
{
348+
"tableName": "Backup",
349+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`backupVersionCode` INTEGER NOT NULL, `packageName` TEXT NOT NULL, `packageLabel` TEXT, `versionName` TEXT, `versionCode` INTEGER NOT NULL, `profileId` INTEGER NOT NULL, `sourceDir` TEXT, `splitSourceDirs` TEXT NOT NULL, `isSystem` INTEGER NOT NULL, `backupDate` TEXT NOT NULL, `hasApk` INTEGER NOT NULL, `hasAppData` INTEGER NOT NULL, `hasDevicesProtectedData` INTEGER NOT NULL, `hasExternalData` INTEGER NOT NULL, `hasObbData` INTEGER NOT NULL, `hasMediaData` INTEGER NOT NULL, `compressionType` TEXT, `cipherType` TEXT, `iv` BLOB, `cpuArch` TEXT, `permissions` TEXT NOT NULL, PRIMARY KEY(`packageName`, `backupDate`))",
350+
"fields": [
351+
{
352+
"fieldPath": "backupVersionCode",
353+
"columnName": "backupVersionCode",
354+
"affinity": "INTEGER",
355+
"notNull": true
356+
},
357+
{
358+
"fieldPath": "packageName",
359+
"columnName": "packageName",
360+
"affinity": "TEXT",
361+
"notNull": true
362+
},
363+
{
364+
"fieldPath": "packageLabel",
365+
"columnName": "packageLabel",
366+
"affinity": "TEXT",
367+
"notNull": false
368+
},
369+
{
370+
"fieldPath": "versionName",
371+
"columnName": "versionName",
372+
"affinity": "TEXT",
373+
"notNull": false
374+
},
375+
{
376+
"fieldPath": "versionCode",
377+
"columnName": "versionCode",
378+
"affinity": "INTEGER",
379+
"notNull": true
380+
},
381+
{
382+
"fieldPath": "profileId",
383+
"columnName": "profileId",
384+
"affinity": "INTEGER",
385+
"notNull": true
386+
},
387+
{
388+
"fieldPath": "sourceDir",
389+
"columnName": "sourceDir",
390+
"affinity": "TEXT",
391+
"notNull": false
392+
},
393+
{
394+
"fieldPath": "splitSourceDirs",
395+
"columnName": "splitSourceDirs",
396+
"affinity": "TEXT",
397+
"notNull": true
398+
},
399+
{
400+
"fieldPath": "isSystem",
401+
"columnName": "isSystem",
402+
"affinity": "INTEGER",
403+
"notNull": true
404+
},
405+
{
406+
"fieldPath": "backupDate",
407+
"columnName": "backupDate",
408+
"affinity": "TEXT",
409+
"notNull": true
410+
},
411+
{
412+
"fieldPath": "hasApk",
413+
"columnName": "hasApk",
414+
"affinity": "INTEGER",
415+
"notNull": true
416+
},
417+
{
418+
"fieldPath": "hasAppData",
419+
"columnName": "hasAppData",
420+
"affinity": "INTEGER",
421+
"notNull": true
422+
},
423+
{
424+
"fieldPath": "hasDevicesProtectedData",
425+
"columnName": "hasDevicesProtectedData",
426+
"affinity": "INTEGER",
427+
"notNull": true
428+
},
429+
{
430+
"fieldPath": "hasExternalData",
431+
"columnName": "hasExternalData",
432+
"affinity": "INTEGER",
433+
"notNull": true
434+
},
435+
{
436+
"fieldPath": "hasObbData",
437+
"columnName": "hasObbData",
438+
"affinity": "INTEGER",
439+
"notNull": true
440+
},
441+
{
442+
"fieldPath": "hasMediaData",
443+
"columnName": "hasMediaData",
444+
"affinity": "INTEGER",
445+
"notNull": true
446+
},
447+
{
448+
"fieldPath": "compressionType",
449+
"columnName": "compressionType",
450+
"affinity": "TEXT",
451+
"notNull": false
452+
},
453+
{
454+
"fieldPath": "cipherType",
455+
"columnName": "cipherType",
456+
"affinity": "TEXT",
457+
"notNull": false
458+
},
459+
{
460+
"fieldPath": "iv",
461+
"columnName": "iv",
462+
"affinity": "BLOB",
463+
"notNull": false
464+
},
465+
{
466+
"fieldPath": "cpuArch",
467+
"columnName": "cpuArch",
468+
"affinity": "TEXT",
469+
"notNull": false
470+
},
471+
{
472+
"fieldPath": "permissions",
473+
"columnName": "permissions",
474+
"affinity": "TEXT",
475+
"notNull": true
476+
}
477+
],
478+
"primaryKey": {
479+
"autoGenerate": false,
480+
"columnNames": [
481+
"packageName",
482+
"backupDate"
483+
]
165484
},
166485
"indices": [],
167486
"foreignKeys": []
@@ -170,7 +489,7 @@
170489
"views": [],
171490
"setupQueries": [
172491
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
173-
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ca5f4dcf7f10d72b658e69a5ebac19b0')"
492+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9731b02c93edc246d16d447b8399c17f')"
174493
]
175494
}
176495
}

0 commit comments

Comments
 (0)