@balena/open-balena-api 31.2.0 → 31.2.1-build-add-service-idx-on-dsev-c45cb63e8e8dd07dda44119e6c353e28b5a8db89-1

Sign up to get free protection for your applications and to get access to all the features.
@@ -199,3 +199,9 @@ ADD CONSTRAINT "user$M+9koFfMHn7kQFDNBaQZbS7gAvNMB1QkrTtsaVZoETw=" CHECK (NOT (
199
199
  ));
200
200
 
201
201
  ALTER TABLE "user" ADD UNIQUE ("email");
202
+
203
+ CREATE UNIQUE INDEX IF NOT EXISTS "device service environment variable_device_service_name_key"
204
+ ON "device service environment variable" ("device", "service", "name");
205
+
206
+ CREATE INDEX IF NOT EXISTS "device_service_environment_variable_service_idx"
207
+ ON "device service environment variable" ("service");
@@ -0,0 +1,10 @@
1
+ -- This is duplicated from (00095 migration) because it was added the
2
+ -- first time without balena-init.sql file being updated to have it
3
+ CREATE UNIQUE INDEX IF NOT EXISTS "device service environment variable_device_service_name_key"
4
+ ON "device service environment variable" ("device", "service", "name");
5
+
6
+ -- Index is needed for "service" only as we need all FKs to have
7
+ -- at least one index where they are the first column in the index
8
+ -- For the "device" FK, it is already the first column in the unique index
9
+ CREATE INDEX IF NOT EXISTS "device_service_environment_variable_service_idx"
10
+ ON "device service environment variable" ("service");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@balena/open-balena-api",
3
3
  "description": "Internet of things, Made Simple",
4
- "version": "31.2.0",
4
+ "version": "31.2.1-build-add-service-idx-on-dsev-c45cb63e8e8dd07dda44119e6c353e28b5a8db89-1",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -166,6 +166,6 @@
166
166
  "loader": "ts-node/esm/transpile-only"
167
167
  },
168
168
  "versionist": {
169
- "publishedAt": "2024-11-13T16:54:56.221Z"
169
+ "publishedAt": "2024-11-18T11:33:48.598Z"
170
170
  }
171
171
  }