Skip to content

Commit 40cdb0c

Browse files
authored
Merge pull request #8 from QuickPay/add_uuid_ossp_extension
add uuid-ossp extension
2 parents 11d2215 + fbdb500 commit 40cdb0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ Pin-Priority: 700" > /etc/apt/preferences.d/chromium.pref'`)
9999
core.setFailed("postgresql database timed out")
100100
return
101101
}
102-
cp.execSync(`psql -d ${connectionString} -c 'CREATE EXTENSION IF NOT EXISTS "pgcrypto";'`)
102+
const extensions = ["pgcrypto", "uuid-ossp"]
103+
extensions.forEach(x => {
104+
cp.execSync(`psql -d ${connectionString} -c 'CREATE EXTENSION IF NOT EXISTS "${x}";'`)
105+
})
103106
fs.writeFileSync("/tmp/ulid_func.sql", GENERATE_ULID)
104107
cp.execSync(`psql -d ${connectionString} < /tmp/ulid_func.sql`)
105108
}

0 commit comments

Comments
 (0)