Skip to content

Commit

Permalink
add uuid-ossp extension
Browse files Browse the repository at this point in the history
  • Loading branch information
cramt committed Apr 19, 2022
1 parent 11d2215 commit fbdb500
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 fbdb500

Please sign in to comment.