From fbdb50038096b6e4ee53dea923f6cb72c85eb5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandra=20=C3=98stemark?= Date: Tue, 19 Apr 2022 14:57:20 +0200 Subject: [PATCH] add uuid-ossp extension --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 6d2b094..fde425b 100644 --- a/index.js +++ b/index.js @@ -99,7 +99,10 @@ Pin-Priority: 700" > /etc/apt/preferences.d/chromium.pref'`) core.setFailed("postgresql database timed out") return } - cp.execSync(`psql -d ${connectionString} -c 'CREATE EXTENSION IF NOT EXISTS "pgcrypto";'`) + const extensions = ["pgcrypto", "uuid-ossp"] + extensions.forEach(x => { + cp.execSync(`psql -d ${connectionString} -c 'CREATE EXTENSION IF NOT EXISTS "${x}";'`) + }) fs.writeFileSync("/tmp/ulid_func.sql", GENERATE_ULID) cp.execSync(`psql -d ${connectionString} < /tmp/ulid_func.sql`) }