pgsql/create_tables.pgsql
branchv0.6.x
changeset 387 05dc4e1f8dff
parent 382 5e6bcb2e010e
child 388 dd95ed5bc9d2
--- a/pgsql/create_tables.pgsql	Mon Feb 07 21:50:44 2011 +0000
+++ b/pgsql/create_tables.pgsql	Tue Feb 08 13:43:35 2011 +0000
@@ -119,7 +119,7 @@
     current     bigint NOT NULL DEFAULT 0,
     CONSTRAINT  pkey_userquota_11 PRIMARY KEY (uid, path),
     CONSTRAINT  fkey_userquota_11_uid_users FOREIGN KEY (uid)
-        REFERENCES users (uid)
+        REFERENCES users (uid) ON DELETE CASCADE
 );
 
 CREATE TABLE alias (