From: Michael J. Rubinsky Date: Mon, 24 May 2010 19:28:49 +0000 (-0400) Subject: use the serial psuedotype when creating the table from scratch X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4bc8f0fecaa18456a19f5b8a2da9ea8d9586f89e;p=horde.git use the serial psuedotype when creating the table from scratch --- diff --git a/horde/scripts/sql/create.pgsql.sql b/horde/scripts/sql/create.pgsql.sql index 0ba52ee36..7a7af5756 100644 --- a/horde/scripts/sql/create.pgsql.sql +++ b/horde/scripts/sql/create.pgsql.sql @@ -46,7 +46,7 @@ CREATE INDEX user_uid_idx ON horde_groups_members (user_uid); CREATE SEQUENCE horde_perms_id_seq; CREATE TABLE horde_perms ( - perm_id INTEGER NOT NULL DEFAULT NEXTVAL('horde_perms_id_seq'), + perm_id SERIAL UNIQUE, perm_name VARCHAR(255) NOT NULL UNIQUE, perm_parents VARCHAR(255) NOT NULL, perm_data TEXT, diff --git a/horde/scripts/sql/horde_perms.pgsql.sql b/horde/scripts/sql/horde_perms.pgsql.sql index bd8339157..bf2bee508 100644 --- a/horde/scripts/sql/horde_perms.pgsql.sql +++ b/horde/scripts/sql/horde_perms.pgsql.sql @@ -1,6 +1,5 @@ -CREATE SEQUENCE horde_perms_id_seq; CREATE TABLE horde_perms ( - perm_id INTEGER NOT NULL DEFAULT NEXTVAL('horde_perms_id_seq'), + perm_id SERIAL UNIQUE, perm_name VARCHAR(255) NOT NULL UNIQUE, perm_parents VARCHAR(255) NOT NULL, perm_data TEXT,