-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
import { spawn } from 'https://deno.land/[email protected]/node/child_process.ts' | ||
|
||
await exec('dropdb', ['postgres_js_test']) | ||
|
||
await exec('psql', ['-c', 'alter system set ssl=on']) | ||
await exec('psql', ['-c', 'drop user postgres_js_test']) | ||
await exec('psql', ['-c', 'create user postgres_js_test']) | ||
await exec('psql', ['-c', 'alter system set password_encryption=md5']) | ||
await exec('psql', ['-c', 'select pg_reload_conf()']) | ||
await exec('psql', ['-c', 'drop user if exists postgres_js_test_md5']) | ||
await exec('psql', ['-c', 'create user postgres_js_test_md5 with password \'postgres_js_test_md5\'']) | ||
await exec('psql', ['-c', 'alter system set password_encryption=\'scram-sha-256\'']) | ||
await exec('psql', ['-c', 'select pg_reload_conf()']) | ||
await exec('psql', ['-c', 'drop user if exists postgres_js_test_scram']) | ||
await exec('psql', ['-c', 'create user postgres_js_test_scram with password \'postgres_js_test_scram\'']) | ||
|
||
await exec('dropdb', ['postgres_js_test']) | ||
await exec('createdb', ['postgres_js_test']) | ||
await exec('psql', ['-c', 'grant all on database postgres_js_test to postgres_js_test']) | ||
await exec('psql', ['-c', 'alter database postgres_js_test owner to postgres_js_test']) | ||
|