Skip to content

Commit 8f39aa2

Browse files
Merge pull request #239 from mapswipe/postgres_triggers
Remove Postgres triggers four row count and remove primary and foreign key constraints of results_temp table.
2 parents 9040f94 + be97f9c commit 8f39aa2

File tree

3 files changed

+1
-93
lines changed

3 files changed

+1
-93
lines changed

postgres/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mdillon/postgis
22

3-
COPY initdb/* docker-entrypoint-initdb.d/
3+
COPY initdb.sql docker-entrypoint-initdb.d/
44
#COPY serviceAccountKey.json serviceAccountKey.json
55

66
# Copy backup scripts and make them executable
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,5 @@ CREATE TABLE IF NOT EXISTS results_temp (
105105
start_time timestamp,
106106
end_time timestamp,
107107
result int,
108-
PRIMARY KEY (project_id, group_id, task_id, user_id),
109-
FOREIGN KEY (project_id) REFERENCES projects (project_id),
110-
FOREIGN KEY (project_id, group_id) REFERENCES GROUPS (project_id, group_id),
111-
FOREIGN KEY (project_id, group_id, task_id) REFERENCES tasks (project_id, group_id, task_id),
112-
FOREIGN KEY (user_id) REFERENCES users (user_id)
113108
);
114109

postgres/initdb/2-row-count.sql

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)