Index: profile_privacy.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/profile_privacy/profile_privacy.install,v
retrieving revision 1.1
diff -u -p -r1.1 profile_privacy.install
--- profile_privacy.install	30 Jun 2007 23:27:21 -0000	1.1
+++ profile_privacy.install	31 May 2009 20:54:05 -0000
@@ -25,15 +25,16 @@ function profile_privacy_install() {
 
     case 'pgsql':
       db_query("CREATE TABLE {profile_privacy_fields} (
-        fid int_unsigned default '0',
-        visibility smallint DEFAULT '0' NOT NULL,
-        PRIMARY KEY (fid)
+        fid int_unsigned NOT NULL DEFAULT '0'::int_unsigned,
+        privacy smallint NOT NULL DEFAULT 0::smallint,
+       CONSTRAINT profile_privacy_fields_pkey PRIMARY KEY (fid)
       )");
       db_query("CREATE INDEX {profile_privacy_fields}_fid_idx ON {profile_privacy_fields} (fid)");
 
       db_query("CREATE TABLE {profile_privacy_values} (
-        fid int_unsigned default '0',
-        uid int_unsigned default '0',
+        fid int_unsigned DEFAULT '0'::int_unsigned,
+        uid int_unsigned DEFAULT '0'::int_unsigned,
+        private smallint NOT NULL DEFAULT 0::smallint
       )");
       db_query("CREATE INDEX {profile_privacy_values}_uid_idx ON {profile_privacy_values} (uid)");
       db_query("CREATE INDEX {profile_privacy_values}_fid_idx ON {profile_privacy_values} (fid)");
@@ -77,4 +78,4 @@ function profile_privacy_legacy_update()
     }
     drupal_set_message("Upgraded legacy pp.module to profile_privacy.module.");
   }
-}
\ No newline at end of file
+}
