-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostgres_init.sql
More file actions
17 lines (13 loc) · 994 Bytes
/
postgres_init.sql
File metadata and controls
17 lines (13 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- This script initializes a PostgreSQL database environment with a user and a database.
-- Create User Service DB
DROP DATABASE IF EXISTS userdb;
CREATE DATABASE userdb WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1;
-- Create Curriculum Service DB
DROP DATABASE IF EXISTS orderdb;
CREATE DATABASE orderdb WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1;
-- Create Curriculum Service DB
DROP DATABASE IF EXISTS stationdb;
CREATE DATABASE stationdb WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1;
-- Create Curriculum Service DB
DROP DATABASE IF EXISTS ticketdb;
CREATE DATABASE ticketdb WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1;