summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-08-01 21:10:28 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-08-01 21:10:28 +0100
commita267fb757f8e2ea5fd4e8a672a2e89f304b1b090 (patch)
tree9ce521b5594513eff4e92013b32f4293884f48c5
parentUpdate schema as dumped by a recent pg_dump (diff)
downloadp2pvr-a267fb757f8e2ea5fd4e8a672a2e89f304b1b090.tar.bz2
p2pvr-a267fb757f8e2ea5fd4e8a672a2e89f304b1b090.tar.xz
p2pvr-a267fb757f8e2ea5fd4e8a672a2e89f304b1b090.zip
Temp files for schema should be in bin
-rw-r--r--p2pvr/datasources/database.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/p2pvr/datasources/database.mk b/p2pvr/datasources/database.mk
index 847e09e..7c012de 100644
--- a/p2pvr/datasources/database.mk
+++ b/p2pvr/datasources/database.mk
@@ -1,11 +1,12 @@
-.PHONY : database current.sql schema.sql
+.PHONY : database bin/current.sql schema.sql
-database: patch.sql
+database: bin/patch.sql
psql -U p2pvr p2pvr < $<
-current.sql :
+bin/current.sql :
+ mkdir -p bin
pg_dump -U p2pvr p2pvr -O -s -E utf8 > $@
-patch.sql : current.sql schema.sql
- apgdiff --add-transaction current.sql schema.sql | tee $@
+bin/patch.sql : bin/current.sql schema.sql
+ apgdiff --add-transaction bin/current.sql schema.sql | tee $@