summaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20220912114912_add-models-uploads-table.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/migrations/20220912114912_add-models-uploads-table.sql b/migrations/20220912114912_add-models-uploads-table.sql
index 6647c69..5b19f8e 100644
--- a/migrations/20220912114912_add-models-uploads-table.sql
+++ b/migrations/20220912114912_add-models-uploads-table.sql
@@ -1,6 +1,6 @@
CREATE TABLE uploads (
id SERIAL PRIMARY KEY,
- model_id INTEGER REFERENCES models(id) NOT NULL,
+ model_id INTEGER REFERENCES models(id) ON DELETE CASCADE NOT NULL,
filepath VARCHAR NOT NULL,
created TIMESTAMP NOT NULL
);