summaryrefslogtreecommitdiff
path: root/database/database.pgsql
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-06 09:49:25 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-06 09:49:25 +0000
commitcabd6c892cbce8c1483c46fe76ce3885cd5f9e41 (patch)
treea0b9374d46538f7adf74b49833658b13385df349 /database/database.pgsql
parentf584cdf74fb734e839cebe40631bd913c766a553 (diff)
downloadbrdo-cabd6c892cbce8c1483c46fe76ce3885cd5f9e41.tar.gz
brdo-cabd6c892cbce8c1483c46fe76ce3885cd5f9e41.tar.bz2
#9810: PostgreSQL updates by Adrian.
Diffstat (limited to 'database/database.pgsql')
-rw-r--r--database/database.pgsql21
1 files changed, 21 insertions, 0 deletions
diff --git a/database/database.pgsql b/database/database.pgsql
index a4eaf9af4..d59fa6e6b 100644
--- a/database/database.pgsql
+++ b/database/database.pgsql
@@ -343,6 +343,21 @@ CREATE INDEX node_created ON node(created);
CREATE INDEX node_changed ON node(changed);
--
+-- Table structure for table `node_access`
+--
+
+CREATE TABLE node_access (
+ nid SERIAL,
+ gid integer NOT NULL default '0',
+ realm text NOT NULL default '',
+ grant_view smallint NOT NULL default '0',
+ grant_update smallint NOT NULL default '0',
+ grant_delete smallint NOT NULL default '0',
+ PRIMARY KEY (nid,gid,realm)
+);
+
+
+--
-- Table structure for table 'node_counter'
--
@@ -700,3 +715,9 @@ BEGIN
RETURN random();
END;
' LANGUAGE 'plpgsql';
+
+CREATE FUNCTION "concat"(text, text) RETURNS text AS '
+BEGIN
+ RETURN $1 || $2;
+END;
+' LANGUAGE 'plpgsql';