From 260c9939c307428b817ee860722b3d5dc4cd7fc8 Mon Sep 17 00:00:00 2001 From: Rikard Bartholf Date: Fri, 12 Feb 2016 12:54:28 +0100 Subject: [PATCH] Update documentation --- .configuration.sh | 4 ++-- README.md | 16 ++++++++-------- migrations/000.000.sql | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 migrations/000.000.sql diff --git a/.configuration.sh b/.configuration.sh index 0b02d83..1468dba 100644 --- a/.configuration.sh +++ b/.configuration.sh @@ -1,3 +1,3 @@ #!/bin/bash -export $PSQL_OPTS= -export $DB_NAME= +export PSQL_OPTS="-h localhost -U root" +export DB_NAME=photowall diff --git a/README.md b/README.md index b0b499e..7c985dc 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,20 @@ #### Configuration All configuration needed is done in .configuration.sh. -Note that a -[.pgpass](http://www.postgresql.org/docs/9.3/static/libpq-pgpass.html) file will -do most of the times as well and therefore configuration is not mandatory. + +To avoid having to enter password for selected user on each run, just use a +[.pgpass](http://www.postgresql.org/docs/9.3/static/libpq-pgpass.html) file. #### Migration files The files in the /migrations directory are changes to the scheme, not the full scheme. The naming convention for migration files are: -- 000.000 -- 000.001 -- 000.002 -- 000.003 -- 000.004 +- 000.000.sql +- 000.001.sql +- 000.002.sql +- 000.003.sql +- 000.004.sql - ...and so on **Example** diff --git a/migrations/000.000.sql b/migrations/000.000.sql new file mode 100644 index 0000000..2c5f732 --- /dev/null +++ b/migrations/000.000.sql @@ -0,0 +1 @@ +-- Empty