Index: credentials.sql
===================================================================
--- credentials.sql	(revision 680)
+++ credentials.sql	(revision 681)
@@ -6,7 +6,7 @@
 	mtime timestamp not null default now(),
 	status smallint not null default 0,
 	opaque smallint not null default 0,
-	uid integer not null default 0,
+	uid integer not null references profiles (id) on delete cascade,
 	ext_id numeric not null default 0,
 	sections integer,
 	name text,
