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

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,6 +81,13 @@ ON "device family" ("is manufactured by-device manufacturer");
81
81
 
82
82
  -- "device tag"."device" is the first part of an automated unique index
83
83
 
84
+ -- "device environment variable"."device" is created with the unique index
85
+ CREATE UNIQUE INDEX IF NOT EXISTS "device service environment variable_device_service_name_key"
86
+ ON "device service environment variable" ("device", "service", "name");
87
+
88
+ CREATE INDEX IF NOT EXISTS "device_service_environment_variable_service_idx"
89
+ ON "device service environment variable" ("service");
90
+
84
91
  CREATE INDEX IF NOT EXISTS "device_type_cpu_arch_idx"
85
92
  ON "device type" ("is of-cpu architecture");
86
93
  CREATE INDEX IF NOT EXISTS "device_type_device_family_idx"
@@ -199,9 +206,3 @@ ADD CONSTRAINT "user$M+9koFfMHn7kQFDNBaQZbS7gAvNMB1QkrTtsaVZoETw=" CHECK (NOT (
199
206
  ));
200
207
 
201
208
  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");
@@ -1,4 +1,4 @@
1
- -- This is duplicated from (00095 migration) because it was added the
1
+ -- This is duplicated (from 00095 migration) because it was added the
2
2
  -- first time without balena-init.sql file being updated to have it
3
3
  CREATE UNIQUE INDEX IF NOT EXISTS "device service environment variable_device_service_name_key"
4
4
  ON "device service environment variable" ("device", "service", "name");
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.1-build-add-service-idx-on-dsev-c45cb63e8e8dd07dda44119e6c353e28b5a8db89-1",
4
+ "version": "31.2.1-build-add-service-idx-on-dsev-003ffcd306a3e3b20fc693a6071f0c9bf65f38b2-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-18T11:33:48.598Z"
169
+ "publishedAt": "2024-11-18T11:57:01.341Z"
170
170
  }
171
171
  }