Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 14fcce7

Browse files
authored
Merge pull request #3013 from wordpress-mobile/issue/11515-shipping-method-db-support
Shipping method db support
2 parents 251fc82 + 697cb9b commit 14fcce7

File tree

11 files changed

+2179
-5
lines changed

11 files changed

+2179
-5
lines changed

plugins/woocommerce/schemas/org.wordpress.android.fluxc.persistence.WCAndroidDatabase/35.json

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"formatVersion": 1,
33
"database": {
44
"version": 35,
5-
"identityHash": "a01f7f90e7751f29876dda9a73c49ccc",
5+
"identityHash": "2b2e3799733db41ef697c524296acc82",
66
"entities": [
77
{
88
"tableName": "AddonEntity",
@@ -1657,12 +1657,45 @@
16571657
},
16581658
"indices": [],
16591659
"foreignKeys": []
1660+
},
1661+
{
1662+
"tableName": "ShippingMethod",
1663+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `localSiteId` INTEGER NOT NULL, `title` TEXT NOT NULL, PRIMARY KEY(`localSiteId`, `id`))",
1664+
"fields": [
1665+
{
1666+
"fieldPath": "id",
1667+
"columnName": "id",
1668+
"affinity": "TEXT",
1669+
"notNull": true
1670+
},
1671+
{
1672+
"fieldPath": "localSiteId",
1673+
"columnName": "localSiteId",
1674+
"affinity": "INTEGER",
1675+
"notNull": true
1676+
},
1677+
{
1678+
"fieldPath": "title",
1679+
"columnName": "title",
1680+
"affinity": "TEXT",
1681+
"notNull": true
1682+
}
1683+
],
1684+
"primaryKey": {
1685+
"columnNames": [
1686+
"localSiteId",
1687+
"id"
1688+
],
1689+
"autoGenerate": false
1690+
},
1691+
"indices": [],
1692+
"foreignKeys": []
16601693
}
16611694
],
16621695
"views": [],
16631696
"setupQueries": [
16641697
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
1665-
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a01f7f90e7751f29876dda9a73c49ccc')"
1698+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2b2e3799733db41ef697c524296acc82')"
16661699
]
16671700
}
16681701
}

0 commit comments

Comments
 (0)