Open joeflack4 opened 6 years ago
env var: postgresql+psycopg2://pmaapi:pmaapi@localhost/pmaapi
creating a database
psql
CREATE DATABASE <db>;
literal command: CREATE DATABASE pmaapi; (edited)
CREATE DATABASE pmaapi;
CREATE USER <user>;
ALTER USER <user> WITH PASSWORD '<pw>';
CREATE USER pmaapi;
ALTER USER <user> WITH PASSWORD 'pmaapi';
Joe Flack [2:14 PM]
GRANT ALL PRIVILEGES ON DATABASE <db> TO <user>;
GRANT ALL PRIVILEGES ON DATABASE pmaapi TO pmaapi;
Description
1. Update docs to erase sqlite stuff
2. Remove sqlite stuff from the codebase as well
3. Update docs to include postgres setup
env var: postgresql+psycopg2://pmaapi:pmaapi@localhost/pmaapi
creating a database
psql
CREATE DATABASE <db>;
(edited)literal command:
CREATE DATABASE pmaapi;
(edited)CREATE USER <user>;
ALTER USER <user> WITH PASSWORD '<pw>';
(edited) example:CREATE USER pmaapi;
ALTER USER <user> WITH PASSWORD 'pmaapi';
Joe Flack [2:14 PM]
GRANT ALL PRIVILEGES ON DATABASE <db> TO <user>;
example:GRANT ALL PRIVILEGES ON DATABASE pmaapi TO pmaapi;