Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mdillon/postgis

COPY initdb/* docker-entrypoint-initdb.d/
COPY initdb.sql docker-entrypoint-initdb.d/
#COPY serviceAccountKey.json serviceAccountKey.json

# Copy backup scripts and make them executable
Expand Down
5 changes: 0 additions & 5 deletions postgres/initdb/1-tables.sql → postgres/initdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,5 @@ CREATE TABLE IF NOT EXISTS results_temp (
start_time timestamp,
end_time timestamp,
result int,
PRIMARY KEY (project_id, group_id, task_id, user_id),
FOREIGN KEY (project_id) REFERENCES projects (project_id),
FOREIGN KEY (project_id, group_id) REFERENCES GROUPS (project_id, group_id),
FOREIGN KEY (project_id, group_id, task_id) REFERENCES tasks (project_id, group_id, task_id),
FOREIGN KEY (user_id) REFERENCES users (user_id)
);

87 changes: 0 additions & 87 deletions postgres/initdb/2-row-count.sql

This file was deleted.