changeset 13:5bf0d6f732c1

fix thinko.
author David A. Holland
date Thu, 19 Jul 2012 15:16:45 -0400
parents d4c3bd255653
children dfd62aad74f4
files database/schema/messages.sql
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/database/schema/messages.sql	Thu Jul 19 15:00:13 2012 -0400
+++ b/database/schema/messages.sql	Thu Jul 19 15:16:45 2012 -0400
@@ -29,7 +29,7 @@
 	--message_id text	not null,
 	rawid bigint		null references rawmail (id)
 
-	check (parent_id != commentid)
+	check (parent_id != id)
 )
 WITHOUT OIDS;