specify defaults for cur_user and cur_user_text
authorDomas Mituzas <midom@users.mediawiki.org>
Thu, 9 Sep 2004 08:33:00 +0000 (08:33 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Thu, 9 Sep 2004 08:33:00 +0000 (08:33 +0000)
maintenance/postgresql/pg_tables.sql

index 5e0324e..5070ae8 100644 (file)
@@ -10,8 +10,8 @@ CREATE TABLE cur (
     cur_title varchar(255) NOT NULL,
     cur_text text NOT NULL,
     cur_comment text,
-    cur_user integer NOT NULL,
-    cur_user_text varchar(255) NOT NULL,
+    cur_user integer DEFAULT 0 NOT NULL,
+    cur_user_text varchar(255) DEFAULT '' NOT NULL,
     cur_timestamp timestamp without time zone NOT NULL,
     cur_restrictions text DEFAULT '':text NOT NULL,
     cur_counter bigint DEFAULT 0 NOT NULL,