Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support offline mode for Sponsors #529

Closed
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"formatVersion": 1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"database": {
"version": 6,
"identityHash": "5b9cb42652b6813a5d5e0b8abc21fa21",
"identityHash": "0a5f68c7db582871e77d067060b90ea6",
"entities": [
{
"tableName": "contributor",
Expand Down Expand Up @@ -343,11 +343,155 @@
]
}
]
},
{
"tableName": "sponsor_plan",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "type",
"columnName": "type",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": true
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "sponsor_group",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `plan_id` INTEGER NOT NULL, FOREIGN KEY(`plan_id`) REFERENCES `sponsor_plan`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "planId",
"columnName": "plan_id",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": true
},
"indices": [
{
"name": "index_sponsor_group_plan_id",
"unique": false,
"columnNames": [
"plan_id"
],
"createSql": "CREATE INDEX `index_sponsor_group_plan_id` ON `${TABLE_NAME}` (`plan_id`)"
}
],
"foreignKeys": [
{
"table": "sponsor_plan",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"plan_id"
],
"referencedColumns": [
"id"
]
}
]
},
{
"tableName": "sponsor",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `group_id` INTEGER NOT NULL, `link` TEXT NOT NULL, `base64_img` TEXT, `img_url` TEXT, FOREIGN KEY(`group_id`) REFERENCES `sponsor_group`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "groupId",
"columnName": "group_id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "link",
"columnName": "link",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "base64Img",
"columnName": "base64_img",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "imgUrl",
"columnName": "img_url",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": true
},
"indices": [
{
"name": "index_sponsor_group_id",
"unique": false,
"columnNames": [
"group_id"
],
"createSql": "CREATE INDEX `index_sponsor_group_id` ON `${TABLE_NAME}` (`group_id`)"
}
],
"foreignKeys": [
{
"table": "sponsor_group",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"group_id"
],
"referencedColumns": [
"id"
]
}
]
}
],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"5b9cb42652b6813a5d5e0b8abc21fa21\")"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"0a5f68c7db582871e77d067060b90ea6\")"
]
}
}
Loading