2016-02-08 23:09:08 +00:00
|
|
|
# Re-learning how to install Postgres (*Sigh)
|
|
|
|
## WITH Postgres 9.4
|
2016-02-08 02:37:34 +00:00
|
|
|
|
|
|
|
CREATE DATABASE officehours;
|
|
|
|
CREATE USER officehours;
|
|
|
|
ALTER USER officehours WITH UNENCRYPTED PASSWORD '<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;
|
2016-02-08 05:18:42 +00:00
|
|
|
CREATE EXTENSION btree_gist;
|
|
|
|
CREATE EXTENSION plv8;
|
2016-02-13 17:13:25 +00:00
|
|
|
be
|
2016-02-08 02:37:34 +00:00
|
|
|
|
|
|
|
|
2016-02-08 23:09:08 +00:00
|
|
|
# What can I do?
|
2016-02-08 02:37:34 +00:00
|
|
|
|
2016-02-08 23:09:08 +00:00
|
|
|
1) Add users and make them clients.
|
|
|
|
2) Add users and make them staff.
|
|
|
|
3) Allocate a block of time as "office hours"
|
|
|
|
4) Allocate a block of time as an "appointment."
|
|
|
|
|
|
|
|
## Progress:
|
|
|
|
|
2016-02-13 17:13:25 +00:00
|
|
|
## Retrieve "this week" with Flask.
|