14 lines
363 B
SQL
14 lines
363 B
SQL
-- Create news_1440 database and user for app.1440.news
|
|
-- Password will be set via ALTER after creation
|
|
|
|
CREATE USER news_1440;
|
|
CREATE DATABASE news_1440 OWNER news_1440;
|
|
|
|
-- Grant privileges
|
|
GRANT ALL PRIVILEGES ON DATABASE news_1440 TO news_1440;
|
|
|
|
-- Connect to the database and set up schema permissions
|
|
\c news_1440
|
|
|
|
GRANT ALL ON SCHEMA public TO news_1440;
|