diff --git a/examples/database/README.md b/examples/database/README.md index 9856be8..d953eba 100644 --- a/examples/database/README.md +++ b/examples/database/README.md @@ -6,7 +6,7 @@ if you want to generate html output, the command is `\pset format html` but you probably want the default format which is *aligned* -## create database and role +## create database and role (psql command line) `CREATE DATABASE ;` `CREATE ROLE WITH LOGIN;` @@ -25,11 +25,12 @@ local all all pe and then restart postgresql `systemctl restart postgresql` -## change database +## change database (psql command line) `\c ` -## create the database tables +## create the database tables (bash command line) + `sudo -u '' psql < create_database_tables.sql` ## sanity check @@ -39,7 +40,7 @@ and insert your email address into the email_white_list table. verify the database table schemas against the models in `models.py`, and hopefully it matches what is below -## describe database +## describe database (psql command line) `=# \d` @@ -90,7 +91,7 @@ and hopefully it matches what is below

-## describe contributor table +## describe contributor table (psql command line) `=# \d contributor`
List of relations
@@ -157,7 +158,7 @@ and hopefully it matches what is below     "contributor_name_key" UNIQUE CONSTRAINT, btree (name)

-## describe photo table +## describe photo table (psql command line) `=# \d photo`
Table "public.contributor"
@@ -378,7 +379,7 @@ and hopefully it matches what is below

-## describe email_white_list +## describe email_white_list (psql command line) `=# \d email_white_list`
Table "public.photo"
Table "public.email_white_list"