18 lines
590 B
SQL
18 lines
590 B
SQL
-- SMART7 database preparation
|
|
|
|
-- 1) install postgis extension
|
|
-- Not Needed: already installed because we use postgis/postgis:11-2.5 docker image
|
|
-- CREATE EXTENSION postgis;
|
|
|
|
-- 2) install uuid-ossp extension
|
|
CREATE EXTENSION "uuid-ossp";
|
|
|
|
-- 3) Create Specific User for SMARTConnect 7 with password
|
|
CREATE USER scadmin PASSWORD 'Sm@rtConnIX3';
|
|
|
|
-- 4) Create DB for SMARTConnect 7 and make newly created user above as the owner
|
|
CREATE DATABASE yel_scdb WITH OWNER scadmin;
|
|
|
|
-- 5) Grant all privileges on database yel_scdb to scadmin
|
|
GRANT ALL PRIVILEGES ON DATABASE yel_scdb TO scadmin;
|