Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-image.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-image.sql,v
diff -u -r1.19 -r1.20
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-image.sql	7 Aug 2017 23:47:47 -0000	1.19
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-image.sql	21 Feb 2018 14:11:08 -0000	1.20
@@ -15,7 +15,7 @@
 create table images (
    image_id       integer
                   constraint images_image_id_fk
-                  references cr_revisions
+                  references cr_revisions on delete cascade
                   constraint images_image_id_pk
                   primary key,
    width          integer,
