Commit 336b713a authored by Dries's avatar Dries

- A large batch of updates, amongst them a rewritten node system.  More
  information available on the mailing list.
parent aafedfb3
......@@ -51,5 +51,5 @@ function admin_page($mod) {
if (user_access("access administration pages")) {
admin_page($mod);
}
?>
\ No newline at end of file
......@@ -18,5 +18,5 @@
foreach (module_list() as $module) {
module_invoke($module, "cron");
}
?>
\ No newline at end of file
--
-- Selected TOC Entries:
--
--- \connect - postgres
\connect - root
--
-- TOC Entry ID 1 (OID 0)
--
-- Name: drupal Type: DATABASE Owner: root
--
Create Database "drupal";
\connect drupal postgres
\connect - postgres
--
-- TOC Entry ID 174 (OID 18720)
-- TOC Entry ID 92 (OID 18720)
--
-- Name: "plpgsql_call_handler" () Type: FUNCTION Owner: postgres
--
--- CREATE FUNCTION "plpgsql_call_handler" () RETURNS opaque AS '/usr/lib/postgresql/lib/plpgsql.so', 'plpgsql_call_handler' LANGUAGE 'C';
CREATE FUNCTION "plpgsql_call_handler" () RETURNS opaque AS '/usr/lib/postgresql/lib/plpgsql.so', 'plpgsql_call_handler' LANGUAGE 'C';
--
-- TOC Entry ID 175 (OID 18721)
-- TOC Entry ID 93 (OID 18721)
--
-- Name: plpgsql Type: PROCEDURAL LANGUAGE Owner:
--
--- CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER "plpgsql_call_handler" LANCOMPILER 'PL/pgSQL';
CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER "plpgsql_call_handler" LANCOMPILER 'PL/pgSQL';
\connect - root
--
-- TOC Entry ID 62 (OID 20075)
-- TOC Entry ID 27 (OID 46073)
--
-- Name: pga_queries Type: TABLE Owner: root
--
......@@ -36,17 +46,7 @@ CREATE TABLE "pga_queries" (
);
--
-- TOC Entry ID 63 (OID 20075)
--
-- Name: pga_queries Type: ACL Owner:
--
REVOKE ALL on "pga_queries" from PUBLIC;
GRANT ALL on "pga_queries" to PUBLIC;
GRANT ALL on "pga_queries" to "root";
--
-- TOC Entry ID 64 (OID 20106)
-- TOC Entry ID 28 (OID 46104)
--
-- Name: pga_forms Type: TABLE Owner: root
--
......@@ -57,17 +57,7 @@ CREATE TABLE "pga_forms" (
);
--
-- TOC Entry ID 65 (OID 20106)
--
-- Name: pga_forms Type: ACL Owner:
--
REVOKE ALL on "pga_forms" from PUBLIC;
GRANT ALL on "pga_forms" to PUBLIC;
GRANT ALL on "pga_forms" to "root";
--
-- TOC Entry ID 66 (OID 20132)
-- TOC Entry ID 29 (OID 46130)
--
-- Name: pga_scripts Type: TABLE Owner: root
--
......@@ -78,17 +68,7 @@ CREATE TABLE "pga_scripts" (
);
--
-- TOC Entry ID 67 (OID 20132)
--
-- Name: pga_scripts Type: ACL Owner:
--
REVOKE ALL on "pga_scripts" from PUBLIC;
GRANT ALL on "pga_scripts" to PUBLIC;
GRANT ALL on "pga_scripts" to "root";
--
-- TOC Entry ID 68 (OID 20158)
-- TOC Entry ID 30 (OID 46156)
--
-- Name: pga_reports Type: TABLE Owner: root
--
......@@ -102,17 +82,7 @@ CREATE TABLE "pga_reports" (
);
--
-- TOC Entry ID 69 (OID 20158)
--
-- Name: pga_reports Type: ACL Owner:
--
REVOKE ALL on "pga_reports" from PUBLIC;
GRANT ALL on "pga_reports" to PUBLIC;
GRANT ALL on "pga_reports" to "root";
--
-- TOC Entry ID 70 (OID 20187)
-- TOC Entry ID 31 (OID 46185)
--
-- Name: pga_schema Type: TABLE Owner: root
--
......@@ -124,17 +94,7 @@ CREATE TABLE "pga_schema" (
);
--
-- TOC Entry ID 71 (OID 20187)
--
-- Name: pga_schema Type: ACL Owner:
--
REVOKE ALL on "pga_schema" from PUBLIC;
GRANT ALL on "pga_schema" to PUBLIC;
GRANT ALL on "pga_schema" to "root";
--
-- TOC Entry ID 2 (OID 20214)
-- TOC Entry ID 2 (OID 46212)
--
-- Name: access_aid_seq Type: SEQUENCE Owner: root
--
......@@ -142,17 +102,7 @@ GRANT ALL on "pga_schema" to "root";
CREATE SEQUENCE "access_aid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 3 (OID 20214)
--
-- Name: access_aid_seq Type: ACL Owner:
--
REVOKE ALL on "access_aid_seq" from PUBLIC;
GRANT ALL on "access_aid_seq" to "root";
GRANT ALL on "access_aid_seq" to "wallaby";
--
-- TOC Entry ID 72 (OID 20233)
-- TOC Entry ID 32 (OID 46231)
--
-- Name: access Type: TABLE Owner: root
--
......@@ -166,76 +116,7 @@ CREATE TABLE "access" (
);
--
-- TOC Entry ID 73 (OID 20233)
--
-- Name: access Type: ACL Owner:
--
REVOKE ALL on "access" from PUBLIC;
GRANT ALL on "access" to "root";
GRANT ALL on "access" to "wallaby";
--
-- TOC Entry ID 4 (OID 20269)
--
-- Name: blog_lid_seq Type: SEQUENCE Owner: root
--
CREATE SEQUENCE "blog_lid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 5 (OID 20269)
--
-- Name: blog_lid_seq Type: ACL Owner:
--
REVOKE ALL on "blog_lid_seq" from PUBLIC;
GRANT ALL on "blog_lid_seq" to "root";
GRANT ALL on "blog_lid_seq" to "wallaby";
--
-- TOC Entry ID 74 (OID 20288)
--
-- Name: blog Type: TABLE Owner: root
--
CREATE TABLE "blog" (
"lid" integer DEFAULT nextval('"blog_lid_seq"'::text) NOT NULL,
"nid" integer NOT NULL,
"body" text NOT NULL,
Constraint "blog_pkey" Primary Key ("lid")
);
--
-- TOC Entry ID 75 (OID 20288)
--
-- Name: blog Type: ACL Owner:
--
REVOKE ALL on "blog" from PUBLIC;
GRANT ALL on "blog" to "root";
GRANT ALL on "blog" to "wallaby";
--
-- TOC Entry ID 6 (OID 20319)
--
-- Name: book_lid_seq Type: SEQUENCE Owner: root
--
CREATE SEQUENCE "book_lid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 7 (OID 20319)
--
-- Name: book_lid_seq Type: ACL Owner:
--
REVOKE ALL on "book_lid_seq" from PUBLIC;
GRANT ALL on "book_lid_seq" to "root";
GRANT ALL on "book_lid_seq" to "wallaby";
--
-- TOC Entry ID 8 (OID 20374)
-- TOC Entry ID 3 (OID 46317)
--
-- Name: boxes_bid_seq Type: SEQUENCE Owner: root
--
......@@ -243,17 +124,7 @@ GRANT ALL on "book_lid_seq" to "wallaby";
CREATE SEQUENCE "boxes_bid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 9 (OID 20374)
--
-- Name: boxes_bid_seq Type: ACL Owner:
--
REVOKE ALL on "boxes_bid_seq" from PUBLIC;
GRANT ALL on "boxes_bid_seq" to "root";
GRANT ALL on "boxes_bid_seq" to "wallaby";
--
-- TOC Entry ID 76 (OID 20393)
-- TOC Entry ID 33 (OID 46336)
--
-- Name: boxes Type: TABLE Owner: root
--
......@@ -268,17 +139,7 @@ CREATE TABLE "boxes" (
);
--
-- TOC Entry ID 77 (OID 20393)
--
-- Name: boxes Type: ACL Owner:
--
REVOKE ALL on "boxes" from PUBLIC;
GRANT ALL on "boxes" to "root";
GRANT ALL on "boxes" to "wallaby";
--
-- TOC Entry ID 10 (OID 20435)
-- TOC Entry ID 4 (OID 46369)
--
-- Name: bundle_bid_seq Type: SEQUENCE Owner: root
--
......@@ -286,17 +147,7 @@ GRANT ALL on "boxes" to "wallaby";
CREATE SEQUENCE "bundle_bid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 11 (OID 20435)
--
-- Name: bundle_bid_seq Type: ACL Owner:
--
REVOKE ALL on "bundle_bid_seq" from PUBLIC;
GRANT ALL on "bundle_bid_seq" to "root";
GRANT ALL on "bundle_bid_seq" to "wallaby";
--
-- TOC Entry ID 78 (OID 20454)
-- TOC Entry ID 34 (OID 46388)
--
-- Name: bundle Type: TABLE Owner: root
--
......@@ -309,17 +160,7 @@ CREATE TABLE "bundle" (
);
--
-- TOC Entry ID 79 (OID 20454)
--
-- Name: bundle Type: ACL Owner:
--
REVOKE ALL on "bundle" from PUBLIC;
GRANT ALL on "bundle" to "root";
GRANT ALL on "bundle" to "wallaby";
--
-- TOC Entry ID 80 (OID 20470)
-- TOC Entry ID 35 (OID 46404)
--
-- Name: cache Type: TABLE Owner: root
--
......@@ -332,17 +173,7 @@ CREATE TABLE "cache" (
);
--
-- TOC Entry ID 81 (OID 20470)
--
-- Name: cache Type: ACL Owner:
--
REVOKE ALL on "cache" from PUBLIC;
GRANT ALL on "cache" to "root";
GRANT ALL on "cache" to "wallaby";
--
-- TOC Entry ID 12 (OID 20500)
-- TOC Entry ID 5 (OID 46434)
--
-- Name: category_cid_seq Type: SEQUENCE Owner: root
--
......@@ -350,17 +181,7 @@ GRANT ALL on "cache" to "wallaby";
CREATE SEQUENCE "category_cid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 13 (OID 20500)
--
-- Name: category_cid_seq Type: ACL Owner:
--
REVOKE ALL on "category_cid_seq" from PUBLIC;
GRANT ALL on "category_cid_seq" to "root";
GRANT ALL on "category_cid_seq" to "wallaby";
--
-- TOC Entry ID 82 (OID 20519)
-- TOC Entry ID 36 (OID 46453)
--
-- Name: category Type: TABLE Owner: root
--
......@@ -379,17 +200,7 @@ CREATE TABLE "category" (
);
--
-- TOC Entry ID 83 (OID 20519)
--
-- Name: category Type: ACL Owner:
--
REVOKE ALL on "category" from PUBLIC;
GRANT ALL on "category" to "root";
GRANT ALL on "category" to "wallaby";
--
-- TOC Entry ID 14 (OID 20544)
-- TOC Entry ID 6 (OID 46475)
--
-- Name: channel_id_seq Type: SEQUENCE Owner: root
--
......@@ -397,17 +208,7 @@ GRANT ALL on "category" to "wallaby";
CREATE SEQUENCE "channel_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 15 (OID 20544)
--
-- Name: channel_id_seq Type: ACL Owner:
--
REVOKE ALL on "channel_id_seq" from PUBLIC;
GRANT ALL on "channel_id_seq" to "root";
GRANT ALL on "channel_id_seq" to "wallaby";
--
-- TOC Entry ID 84 (OID 20563)
-- TOC Entry ID 37 (OID 46494)
--
-- Name: channel Type: TABLE Owner: root
--
......@@ -423,17 +224,7 @@ CREATE TABLE "channel" (
);
--
-- TOC Entry ID 85 (OID 20563)
--
-- Name: channel Type: ACL Owner:
--
REVOKE ALL on "channel" from PUBLIC;
GRANT ALL on "channel" to "root";
GRANT ALL on "channel" to "wallaby";
--
-- TOC Entry ID 16 (OID 20591)
-- TOC Entry ID 7 (OID 46513)
--
-- Name: chatevents_id_seq Type: SEQUENCE Owner: root
--
......@@ -441,17 +232,7 @@ GRANT ALL on "channel" to "wallaby";
CREATE SEQUENCE "chatevents_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 17 (OID 20591)
--
-- Name: chatevents_id_seq Type: ACL Owner:
--
REVOKE ALL on "chatevents_id_seq" from PUBLIC;
GRANT ALL on "chatevents_id_seq" to "root";
GRANT ALL on "chatevents_id_seq" to "wallaby";
--
-- TOC Entry ID 86 (OID 20610)
-- TOC Entry ID 38 (OID 46532)
--
-- Name: chatevents Type: TABLE Owner: root
--
......@@ -464,17 +245,7 @@ CREATE TABLE "chatevents" (
);
--
-- TOC Entry ID 87 (OID 20610)
--
-- Name: chatevents Type: ACL Owner:
--
REVOKE ALL on "chatevents" from PUBLIC;
GRANT ALL on "chatevents" to "root";
GRANT ALL on "chatevents" to "wallaby";
--
-- TOC Entry ID 18 (OID 20626)
-- TOC Entry ID 8 (OID 46548)
--
-- Name: chatmembers_id_seq Type: SEQUENCE Owner: root
--
......@@ -482,17 +253,7 @@ GRANT ALL on "chatevents" to "wallaby";
CREATE SEQUENCE "chatmembers_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 19 (OID 20626)
--
-- Name: chatmembers_id_seq Type: ACL Owner:
--
REVOKE ALL on "chatmembers_id_seq" from PUBLIC;
GRANT ALL on "chatmembers_id_seq" to "root";
GRANT ALL on "chatmembers_id_seq" to "wallaby";
--
-- TOC Entry ID 88 (OID 20645)
-- TOC Entry ID 39 (OID 46567)
--
-- Name: chatmembers Type: TABLE Owner: root
--
......@@ -505,17 +266,7 @@ CREATE TABLE "chatmembers" (
);
--
-- TOC Entry ID 89 (OID 20645)
--
-- Name: chatmembers Type: ACL Owner:
--
REVOKE ALL on "chatmembers" from PUBLIC;
GRANT ALL on "chatmembers" to "root";
GRANT ALL on "chatmembers" to "wallaby";
--
-- TOC Entry ID 20 (OID 20680)
-- TOC Entry ID 9 (OID 46583)
--
-- Name: collection_cid_seq Type: SEQUENCE Owner: root
--
......@@ -523,17 +274,7 @@ GRANT ALL on "chatmembers" to "wallaby";
CREATE SEQUENCE "collection_cid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 21 (OID 20680)
--
-- Name: collection_cid_seq Type: ACL Owner:
--
REVOKE ALL on "collection_cid_seq" from PUBLIC;
GRANT ALL on "collection_cid_seq" to "root";
GRANT ALL on "collection_cid_seq" to "wallaby";
--
-- TOC Entry ID 90 (OID 20699)
-- TOC Entry ID 40 (OID 46602)
--
-- Name: collection Type: TABLE Owner: root
--
......@@ -546,17 +287,7 @@ CREATE TABLE "collection" (
);
--
-- TOC Entry ID 91 (OID 20699)
--
-- Name: collection Type: ACL Owner:
--
REVOKE ALL on "collection" from PUBLIC;
GRANT ALL on "collection" to "root";
GRANT ALL on "collection" to "wallaby";
--
-- TOC Entry ID 22 (OID 20718)
-- TOC Entry ID 10 (OID 46618)
--
-- Name: comments_cid_seq Type: SEQUENCE Owner: root
--
......@@ -564,17 +295,7 @@ GRANT ALL on "collection" to "wallaby";
CREATE SEQUENCE "comments_cid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 23 (OID 20718)
--
-- Name: comments_cid_seq Type: ACL Owner:
--
REVOKE ALL on "comments_cid_seq" from PUBLIC;
GRANT ALL on "comments_cid_seq" to "root";
GRANT ALL on "comments_cid_seq" to "wallaby";
--
-- TOC Entry ID 92 (OID 20780)
-- TOC Entry ID 41 (OID 46637)
--
-- Name: cvs Type: TABLE Owner: root
--
......@@ -588,40 +309,7 @@ CREATE TABLE "cvs" (
);
--
-- TOC Entry ID 93 (OID 20780)
--
-- Name: cvs Type: ACL Owner:
--
REVOKE ALL on "cvs" from PUBLIC;
GRANT ALL on "cvs" to "root";
GRANT ALL on "cvs" to "wallaby";
--
-- TOC Entry ID 94 (OID 20828)
--
-- Name: diaries Type: TABLE Owner: root
--
CREATE TABLE "diaries" (
"id" integer DEFAULT nextval('"diary_id_seq"'::text) NOT NULL,
"author" integer NOT NULL,
"text" text NOT NULL,
"timestamp" text NOT NULL
);
--
-- TOC Entry ID 95 (OID 20828)
--
-- Name: diaries Type: ACL Owner:
--
REVOKE ALL on "diaries" from PUBLIC;
GRANT ALL on "diaries" to "root";
GRANT ALL on "diaries" to "wallaby";
--
-- TOC Entry ID 96 (OID 20860)
-- TOC Entry ID 42 (OID 46695)
--
-- Name: pga_layout Type: TABLE Owner: root
--
......@@ -634,58 +322,7 @@ CREATE TABLE "pga_layout" (
);
--
-- TOC Entry ID 97 (OID 20860)
--
-- Name: pga_layout Type: ACL Owner:
--
REVOKE ALL on "pga_layout" from PUBLIC;
GRANT ALL on "pga_layout" to PUBLIC;
GRANT ALL on "pga_layout" to "root";
--
-- TOC Entry ID 24 (OID 21124)
--
-- Name: diary_lid_seq Type: SEQUENCE Owner: root
--
CREATE SEQUENCE "diary_lid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 25 (OID 21124)
--
-- Name: diary_lid_seq Type: ACL Owner:
--
REVOKE ALL on "diary_lid_seq" from PUBLIC;
GRANT ALL on "diary_lid_seq" to "root";
GRANT ALL on "diary_lid_seq" to "wallaby";
--
-- TOC Entry ID 98 (OID 21143)
--
-- Name: diary Type: TABLE Owner: root
--
CREATE TABLE "diary" (
"lid" integer DEFAULT nextval('"diary_lid_seq"'::text) NOT NULL,
"nid" integer NOT NULL,
"body" text NOT NULL,
Constraint "diary_pkey" Primary Key ("lid")
);
--
-- TOC Entry ID 99 (OID 21143)
--
-- Name: diary Type: ACL Owner:
--
REVOKE ALL on "diary" from PUBLIC;
GRANT ALL on "diary" to "root";
GRANT ALL on "diary" to "wallaby";
--
-- TOC Entry ID 26 (OID 21174)
-- TOC Entry ID 11 (OID 46773)
--
-- Name: entry_eid_seq Type: SEQUENCE Owner: root
--
......@@ -693,17 +330,7 @@ GRANT ALL on "diary" to "wallaby";
CREATE SEQUENCE "entry_eid_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;
--
-- TOC Entry ID 27 (OID 21174)
--
-- Name: entry_eid_seq Type: ACL Owner:
--
REVOKE ALL on "entry_eid_seq" from PUBLIC;
GRANT ALL on "entry_eid_seq" to "root";
GRANT ALL on "entry_eid_seq" to "wallaby";
--
-- TOC Entry ID 100 (OID 21193)
-- TOC Entry ID 43 (OID 46792)
--
-- Name: entry Type: TABLE Owner: root
--
......@@ -717,17 +344,7 @@ CREATE TABLE "entry" (
);
--
-- TOC Entry ID 101 (OID 21193)
--
-- Name: entry Type: ACL Owner:
--
REVOKE ALL on "entry" from PUBLIC;