view database/schema/version.sql @ 55:40f64a96481f

Adjust database user arrangements and grant schema privs.
author David A. Holland
date Sun, 10 Apr 2022 19:36:29 -0400
parents 68cc276ac118
children
line wrap: on
line source

--
-- Schema info.
--
-- The schema version is stored in every PR when the PR is
-- entered; this helps reconstruct history.
--
-- The schema version is also used for future-proofing.

-- Should have only one row.
CREATE TABLE schemainfo (
       version int	not null
)
WITHOUT OIDS;

-- This is readonly except for system updates.
GRANT SELECT ON schemainfo TO swallowtail_admin;
GRANT SELECT ON schemainfo TO swallowtail_writer;
GRANT SELECT ON schemainfo TO swallowtail_reader;
GRANT SELECT ON schemainfo TO swallowtail_public;