Files
uptimesebi/deploy/dev/postgres-init.sql
T

8 lines
329 B
SQL

-- Superusers bypass row-level security even with FORCE, so the application
-- must connect as an ordinary role for tenant isolation to be enforced.
CREATE ROLE uptime LOGIN PASSWORD 'uptime';
CREATE DATABASE uptime OWNER uptime;
\connect uptime
CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE EXTENSION IF NOT EXISTS citext;