@hot-updater/postgres 1.0.0-rc.2 → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/sql/bundles.sql +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/postgres",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.3",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"kysely": "0.28.17",
|
|
36
36
|
"pg": "8.13.1",
|
|
37
37
|
"@hot-updater/core": "1.0.0-rc.0",
|
|
38
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
38
|
+
"@hot-updater/plugin-core": "1.0.0-rc.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@electric-sql/pglite": "0.4.1",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"camelcase-keys": "^9.1.3",
|
|
45
45
|
"kysely-pglite-dialect": "1.2.0",
|
|
46
46
|
"pg-minify": "^1.6.5",
|
|
47
|
-
"@hot-updater/test-utils": "1.0.0-rc.
|
|
47
|
+
"@hot-updater/test-utils": "1.0.0-rc.3"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown",
|
package/sql/bundles.sql
CHANGED
|
@@ -161,15 +161,15 @@ alter table release_catalogs add constraint release_catalogs_generation_check
|
|
|
161
161
|
alter table release_catalogs add constraint release_catalogs_byte_size_check
|
|
162
162
|
check (byte_size >= 0 and byte_size <= 262144);
|
|
163
163
|
alter table bundle_events add constraint bundle_events_type_check
|
|
164
|
-
check (type in ('UPDATE_APPLIED', 'RECOVERED', '
|
|
164
|
+
check (type in ('UPDATE_APPLIED', 'RECOVERED', 'UNCHANGED'));
|
|
165
165
|
alter table bundle_events add constraint bundle_events_platform_check
|
|
166
166
|
check (platform in ('ios', 'android'));
|
|
167
167
|
alter table bundle_events add constraint bundle_events_shape_check
|
|
168
|
-
check (((type in ('UPDATE_APPLIED', 'RECOVERED'
|
|
168
|
+
check (((type in ('UPDATE_APPLIED', 'RECOVERED')) and from_bundle_id is not null and update_strategy is not null and update_strategy in ('fingerprint', 'appVersion')) or (type = 'UNCHANGED' and from_bundle_id is null and update_strategy is null));
|
|
169
169
|
alter table bundle_events add constraint bundle_events_received_at_check
|
|
170
170
|
check (received_at_ms >= 0);
|
|
171
171
|
alter table bundle_installations add constraint bundle_installations_type_check
|
|
172
|
-
check (type in ('UPDATE_APPLIED', 'RECOVERED', '
|
|
172
|
+
check (type in ('UPDATE_APPLIED', 'RECOVERED', 'UNCHANGED'));
|
|
173
173
|
alter table bundle_installations add constraint bundle_installations_platform_check
|
|
174
174
|
check (platform in ('ios', 'android'));
|
|
175
175
|
alter table bundle_installations add constraint bundle_installations_received_at_check
|