Skip to content

Commit

Permalink
Merge pull request #8 from QuickPay/add_uuid_ossp_extension
Browse files Browse the repository at this point in the history
add uuid-ossp extension
  • Loading branch information
cramt authored Apr 19, 2022
2 parents 11d2215 + fbdb500 commit 40cdb0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
}
Expand Down

0 comments on commit 40cdb0c

Please sign in to comment.