Skip to content

Commit

Permalink
Renamed job to job_cmd in jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rok Strniša committed Apr 17, 2012
1 parent 4cba2be commit 466ebb4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*~
*.cmi
*.cmx
*.o
Expand Down
Binary file modified doc/uml-schema.dia
Binary file not shown.
Binary file modified doc/uml-schema.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions sql/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
SHELL=bash
CONFIG=/usr/groups/perfeng/rage/config
PERF_DB=$(shell grep "^perf_db" $(CONFIG) | awk -F '=' '{print $$2}')
PERF_HOST=$(shell grep "^perf_host" $(CONFIG) | awk -F '=' '{print $$2}')
PERF_USER=$(shell grep "^perf_user" $(CONFIG) | awk -F '=' '{print $$2}')
PERF_PASS=$(shell grep "^perf_pass" $(CONFIG) | awk -F '=' '{print $$2}')

.PHONY: default
default:
@echo "Type 'make reset' to clear the database."

.PHONY: reset
reset: schema.sql
PGPASSWORD=$(PERF_PASS) psql -h $(PERF_HOST) -U $(PERF_USER) $(PERF_DB) < $<

.PHONY: clean
clean:
@rm -f *.{log,sql}
3 changes: 2 additions & 1 deletion sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ drop table soms;
drop table test_cases;
drop table tiny_urls;

drop sequence tiny_urls_key_seq;
create sequence tiny_urls_key_seq;
grant all on tiny_urls_key_seq to "www-data";
create table tiny_urls (
Expand Down Expand Up @@ -61,7 +62,7 @@ grant select on branch_order to "www-data";
create table jobs (
job_id integer not null,
build_id integer not null,
cmd text null,
job_cmd text null,

primary key (job_id),
foreign key (build_id) references builds(build_id)
Expand Down

0 comments on commit 466ebb4

Please sign in to comment.