You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/check-extension.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ spec:
11
11
env:
12
12
- name: EXT_SQL_NAME
13
13
value: ($values.sql_name)
14
+
- name: EXT_SQL_NAME
15
+
value: ($values.version)
14
16
- name: DB_URI
15
17
valueFrom:
16
18
secretKeyRef:
@@ -22,5 +24,5 @@ spec:
22
24
- |
23
25
set -e
24
26
DB_URI=$(echo $DB_URI | sed "s|/\*|/|")
25
-
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = '${EXT_SQL_NAME}')" -q)" = "t"
26
-
echo "Extension '${EXT_SQL_NAME}' is installed!"
27
+
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = '${EXT_SQL_NAME}' AND extversion = '${EXT_VERSION}')" -q)" = "t"
28
+
echo "Extension '${EXT_SQL_NAME} v${EXT_VERSION}' is installed!"
0 commit comments