846 B
846 B
Re-learning how to install Postgres (*Sigh)
WITH Postgres 9.4
CREATE DATABASE officehours; CREATE USER officehours; ALTER USER officehours WITH UNENCRYPTED PASSWORD ''; ALTER USER officehours LOGIN; GRANT ALL PRIVILEGES ON DATABASE officehours TO officehours;
-- Been a while since I used Postgres. I'd forgotten that Postgres -- thinks in terms of privileged connections. It makes sense, certainly -- better than MySQL. \CONNECT officehours;
-- Enable case-insensitive matches on some text columns, good for email CREATE EXTENSION citext; CREATE EXTENSION btree_gist; CREATE EXTENSION plv8;
What can I do?
- Add users and make them clients.
- Add users and make them staff.
- Allocate a block of time as "office hours"
- Allocate a block of time as an "appointment."
Progress:
Everything works in psycopg2.