annotate database/init/users.sql @ 47:bcd1d06838fd

more better stuff
author David A. Holland
date Wed, 13 Aug 2014 03:03:30 -0400
parents 90ec9e3b0a6f
children 40f64a96481f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
68cc276ac118 SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff changeset
1 -- Database user initialization.
68cc276ac118 SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff changeset
2 -- Needs to be done as database superuser.
68cc276ac118 SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff changeset
3 --
30
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
4 -- The users:
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
5 -- swallowtail_admin: owns the database tables
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
6 -- swallowtail_writer: has write access
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
7 -- swallowtail: has readonly access to everything
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
8 -- swallowtail_public: cannot see confidential PRs
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
9 --
8
68cc276ac118 SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff changeset
10
30
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
11 create user swallowtail_admin;
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
12 create user swallowtail_writer;
8
68cc276ac118 SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff changeset
13 create user swallowtail;
30
90ec9e3b0a6f add more users
David A. Holland
parents: 28
diff changeset
14 create user swallowtail_public;