Browse Source

Insert the current git reversion into the schema_version table

We do this in order to check, when running the tests, that the
versions match.
David N. Welton 10 years ago
parent
commit
9a71ef2f93
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Makefile

+ 2 - 0
Makefile

@@ -1,4 +1,5 @@
 REBAR = rebar
+LASTVERSION = $(shell git rev-parse HEAD )
 
 all: compile
 
@@ -10,6 +11,7 @@ clean:
 
 create_testdbs:
 	psql template1 < ./test_data/test_schema.sql
+	psql epgsql_test_db1 -c "INSERT INTO schema_version (version) VALUES ('${LASTVERSION}');"
 
 test:
 	@$(REBAR) eunit