X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cocanwiki.sql;h=8d20a39ec251af2d789915ce389fc20c3ed6cba6;hb=32f71ff9f960ecb191f256a6cfc11a3f2c0c0cf7;hp=247f91543d5f680c23aabcc0f38c07ae4c32be34;hpb=56b3bb4fc87b75c1056c0ac092aa2d6888426fa8;p=cocanwiki.git diff --git a/cocanwiki.sql b/cocanwiki.sql index 247f915..8d20a39 100644 --- a/cocanwiki.sql +++ b/cocanwiki.sql @@ -48,7 +48,7 @@ GRANT ALL ON TABLE pages TO "www-data"; -- --- TOC entry 40 (OID 536004) +-- TOC entry 50 (OID 536004) -- Name: pages_id_seq; Type: ACL; Schema: public; Owner: rich -- @@ -81,7 +81,7 @@ GRANT ALL ON TABLE contents TO "www-data"; -- --- TOC entry 41 (OID 536021) +-- TOC entry 51 (OID 536021) -- Name: contents_id_seq; Type: ACL; Schema: public; Owner: rich -- @@ -104,7 +104,10 @@ CREATE TABLE hosts ( feedback_email text, mailing_list boolean DEFAULT false NOT NULL, is_template boolean DEFAULT false NOT NULL, - search_box boolean DEFAULT true NOT NULL + search_box boolean DEFAULT true NOT NULL, + view_anon boolean DEFAULT true NOT NULL, + navigation boolean DEFAULT false NOT NULL, + powered_by integer ); @@ -118,7 +121,7 @@ GRANT ALL ON TABLE hosts TO "www-data"; -- --- TOC entry 42 (OID 536371) +-- TOC entry 52 (OID 536371) -- Name: hosts_id_seq; Type: ACL; Schema: public; Owner: rich -- @@ -147,28 +150,7 @@ GRANT ALL ON TABLE hostnames TO "www-data"; -- --- TOC entry 13 (OID 536915) --- Name: email_notify; Type: TABLE; Schema: public; Owner: rich --- - -CREATE TABLE email_notify ( - hostid integer NOT NULL, - email text NOT NULL, - name text -); - - --- --- TOC entry 14 (OID 536915) --- Name: email_notify; Type: ACL; Schema: public; Owner: rich --- - -REVOKE ALL ON TABLE email_notify FROM PUBLIC; -GRANT ALL ON TABLE email_notify TO "www-data"; - - --- --- TOC entry 15 (OID 537151) +-- TOC entry 13 (OID 537151) -- Name: images; Type: TABLE; Schema: public; Owner: rich -- @@ -194,7 +176,7 @@ CREATE TABLE images ( -- --- TOC entry 16 (OID 537151) +-- TOC entry 14 (OID 537151) -- Name: images; Type: ACL; Schema: public; Owner: rich -- @@ -203,7 +185,7 @@ GRANT ALL ON TABLE images TO "www-data"; -- --- TOC entry 43 (OID 537151) +-- TOC entry 53 (OID 537151) -- Name: images_id_seq; Type: ACL; Schema: public; Owner: rich -- @@ -212,7 +194,7 @@ GRANT ALL ON TABLE images_id_seq TO "www-data"; -- --- TOC entry 17 (OID 537166) +-- TOC entry 15 (OID 537166) -- Name: files; Type: TABLE; Schema: public; Owner: rich -- @@ -229,7 +211,7 @@ CREATE TABLE files ( -- --- TOC entry 18 (OID 537166) +-- TOC entry 16 (OID 537166) -- Name: files; Type: ACL; Schema: public; Owner: rich -- @@ -238,7 +220,7 @@ GRANT ALL ON TABLE files TO "www-data"; -- --- TOC entry 44 (OID 537166) +-- TOC entry 54 (OID 537166) -- Name: files_id_seq; Type: ACL; Schema: public; Owner: rich -- @@ -247,7 +229,7 @@ GRANT ALL ON TABLE files_id_seq TO "www-data"; -- --- TOC entry 19 (OID 540816) +-- TOC entry 17 (OID 540816) -- Name: users; Type: TABLE; Schema: public; Owner: rich -- @@ -263,12 +245,15 @@ CREATE TABLE users ( can_manage_contacts boolean DEFAULT false NOT NULL, can_manage_site boolean DEFAULT false NOT NULL, can_edit_global_css boolean DEFAULT false NOT NULL, - force_password_change boolean DEFAULT false NOT NULL + force_password_change boolean DEFAULT false NOT NULL, + can_import_mail boolean DEFAULT false NOT NULL, + email_notify boolean DEFAULT true NOT NULL, + invite text ); -- --- TOC entry 20 (OID 540816) +-- TOC entry 18 (OID 540816) -- Name: users; Type: ACL; Schema: public; Owner: rich -- @@ -277,7 +262,7 @@ GRANT ALL ON TABLE users TO "www-data"; -- --- TOC entry 45 (OID 540816) +-- TOC entry 55 (OID 540816) -- Name: users_id_seq; Type: ACL; Schema: public; Owner: rich -- @@ -286,7 +271,7 @@ GRANT ALL ON TABLE users_id_seq TO "www-data"; -- --- TOC entry 21 (OID 540832) +-- TOC entry 19 (OID 540832) -- Name: usercookies; Type: TABLE; Schema: public; Owner: rich -- @@ -297,7 +282,7 @@ CREATE TABLE usercookies ( -- --- TOC entry 22 (OID 540832) +-- TOC entry 20 (OID 540832) -- Name: usercookies; Type: ACL; Schema: public; Owner: rich -- @@ -306,7 +291,7 @@ GRANT ALL ON TABLE usercookies TO "www-data"; -- --- TOC entry 23 (OID 540961) +-- TOC entry 21 (OID 540961) -- Name: sitemenu; Type: TABLE; Schema: public; Owner: rich -- @@ -319,7 +304,7 @@ CREATE TABLE sitemenu ( -- --- TOC entry 24 (OID 540961) +-- TOC entry 22 (OID 540961) -- Name: sitemenu; Type: ACL; Schema: public; Owner: rich -- @@ -328,7 +313,7 @@ GRANT ALL ON TABLE sitemenu TO "www-data"; -- --- TOC entry 25 (OID 542605) +-- TOC entry 23 (OID 542605) -- Name: contacts; Type: TABLE; Schema: public; Owner: rich -- @@ -341,7 +326,7 @@ CREATE TABLE contacts ( -- --- TOC entry 26 (OID 542605) +-- TOC entry 24 (OID 542605) -- Name: contacts; Type: ACL; Schema: public; Owner: rich -- @@ -350,7 +335,7 @@ GRANT ALL ON TABLE contacts TO "www-data"; -- --- TOC entry 46 (OID 542605) +-- TOC entry 56 (OID 542605) -- Name: contacts_id_seq; Type: ACL; Schema: public; Owner: rich -- @@ -359,7 +344,7 @@ GRANT ALL ON TABLE contacts_id_seq TO "www-data"; -- --- TOC entry 27 (OID 542617) +-- TOC entry 25 (OID 542617) -- Name: contact_emails; Type: TABLE; Schema: public; Owner: rich -- @@ -370,7 +355,7 @@ CREATE TABLE contact_emails ( -- --- TOC entry 28 (OID 542617) +-- TOC entry 26 (OID 542617) -- Name: contact_emails; Type: ACL; Schema: public; Owner: rich -- @@ -379,7 +364,7 @@ GRANT ALL ON TABLE contact_emails TO "www-data"; -- --- TOC entry 29 (OID 543499) +-- TOC entry 27 (OID 543499) -- Name: themes; Type: TABLE; Schema: public; Owner: rich -- @@ -391,7 +376,7 @@ CREATE TABLE themes ( -- --- TOC entry 30 (OID 543499) +-- TOC entry 28 (OID 543499) -- Name: themes; Type: ACL; Schema: public; Owner: rich -- @@ -400,18 +385,19 @@ GRANT SELECT ON TABLE themes TO "www-data"; -- --- TOC entry 31 (OID 543592) +-- TOC entry 29 (OID 543592) -- Name: server_settings; Type: TABLE; Schema: public; Owner: rich -- CREATE TABLE server_settings ( "version" integer NOT NULL, - stats_page text + stats_page text, + crash_email text ); -- --- TOC entry 33 (OID 543592) +-- TOC entry 31 (OID 543592) -- Name: server_settings; Type: ACL; Schema: public; Owner: rich -- @@ -420,7 +406,7 @@ GRANT SELECT ON TABLE server_settings TO "www-data"; -- --- TOC entry 34 (OID 543754) +-- TOC entry 32 (OID 543754) -- Name: page_emails; Type: TABLE; Schema: public; Owner: rich -- @@ -436,7 +422,7 @@ CREATE TABLE page_emails ( -- --- TOC entry 35 (OID 543754) +-- TOC entry 33 (OID 543754) -- Name: page_emails; Type: ACL; Schema: public; Owner: rich -- @@ -445,7 +431,7 @@ GRANT ALL ON TABLE page_emails TO "www-data"; -- --- TOC entry 36 (OID 543785) +-- TOC entry 34 (OID 543785) -- Name: mailing_lists; Type: TABLE; Schema: public; Owner: rich -- @@ -460,7 +446,7 @@ CREATE TABLE mailing_lists ( -- --- TOC entry 37 (OID 543785) +-- TOC entry 35 (OID 543785) -- Name: mailing_lists; Type: ACL; Schema: public; Owner: rich -- @@ -469,7 +455,7 @@ GRANT ALL ON TABLE mailing_lists TO "www-data"; -- --- TOC entry 38 (OID 544445) +-- TOC entry 36 (OID 544445) -- Name: links; Type: TABLE; Schema: public; Owner: rich -- @@ -482,7 +468,7 @@ CREATE TABLE links ( -- --- TOC entry 39 (OID 544445) +-- TOC entry 37 (OID 544445) -- Name: links; Type: ACL; Schema: public; Owner: rich -- @@ -491,7 +477,156 @@ GRANT ALL ON TABLE links TO "www-data"; -- --- TOC entry 51 (OID 536388) +-- TOC entry 38 (OID 547939) +-- Name: templates; Type: TABLE; Schema: public; Owner: rich +-- + +CREATE TABLE templates ( + id serial NOT NULL, + title_regexp text NOT NULL, + url_regexp text NOT NULL, + extension text NOT NULL, + ordering integer NOT NULL +); + + +-- +-- TOC entry 39 (OID 547939) +-- Name: templates; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE templates FROM PUBLIC; +GRANT SELECT ON TABLE templates TO "www-data"; + + +-- +-- TOC entry 57 (OID 547939) +-- Name: templates_id_seq; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE templates_id_seq FROM PUBLIC; + + +-- +-- TOC entry 40 (OID 551123) +-- Name: recently_visited; Type: TABLE; Schema: public; Owner: rich +-- + +CREATE TABLE recently_visited ( + userid integer NOT NULL, + hostid integer NOT NULL, + url text NOT NULL, + visit_time timestamp without time zone DEFAULT ('now'::text)::timestamp(6) with time zone NOT NULL +); + + +-- +-- TOC entry 41 (OID 551123) +-- Name: recently_visited; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE recently_visited FROM PUBLIC; +GRANT ALL ON TABLE recently_visited TO "www-data"; + + +-- +-- TOC entry 42 (OID 551675) +-- Name: messages; Type: TABLE; Schema: public; Owner: rich +-- + +CREATE TABLE messages ( + id serial NOT NULL, + subject text NOT NULL, + inet_message_id text NOT NULL, + message_date timestamp with time zone NOT NULL, + hostid integer NOT NULL +); + + +-- +-- TOC entry 43 (OID 551675) +-- Name: messages; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE messages FROM PUBLIC; +GRANT ALL ON TABLE messages TO "www-data"; + + +-- +-- TOC entry 58 (OID 551675) +-- Name: messages_id_seq; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE messages_id_seq FROM PUBLIC; +GRANT ALL ON TABLE messages_id_seq TO "www-data"; + + +-- +-- TOC entry 44 (OID 551685) +-- Name: msg_references; Type: TABLE; Schema: public; Owner: rich +-- + +CREATE TABLE msg_references ( + message_id integer NOT NULL, + inet_message_id text NOT NULL, + ordering integer NOT NULL +); + + +-- +-- TOC entry 45 (OID 551685) +-- Name: msg_references; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE msg_references FROM PUBLIC; +GRANT ALL ON TABLE msg_references TO "www-data"; + + +-- +-- TOC entry 46 (OID 607075) +-- Name: powered_by; Type: TABLE; Schema: public; Owner: rich +-- + +CREATE TABLE powered_by ( + id serial NOT NULL, + name text NOT NULL, + url text NOT NULL +); + + +-- +-- TOC entry 47 (OID 607075) +-- Name: powered_by; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE powered_by FROM PUBLIC; +GRANT SELECT ON TABLE powered_by TO "www-data"; + + +-- +-- TOC entry 48 (OID 607136) +-- Name: pending_email_changes; Type: TABLE; Schema: public; Owner: rich +-- + +CREATE TABLE pending_email_changes ( + "key" text NOT NULL, + change_date date DEFAULT ('now'::text)::date NOT NULL, + userid integer NOT NULL, + email text NOT NULL +); + + +-- +-- TOC entry 49 (OID 607136) +-- Name: pending_email_changes; Type: ACL; Schema: public; Owner: rich +-- + +REVOKE ALL ON TABLE pending_email_changes FROM PUBLIC; +GRANT ALL ON TABLE pending_email_changes TO "www-data"; + + +-- +-- TOC entry 65 (OID 536388) -- Name: hostnames_hostid_name_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -499,7 +634,7 @@ CREATE UNIQUE INDEX hostnames_hostid_name_uq ON hostnames USING btree (hostid, n -- --- TOC entry 52 (OID 536389) +-- TOC entry 66 (OID 536389) -- Name: hostnams_name_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -507,7 +642,7 @@ CREATE UNIQUE INDEX hostnams_name_uq ON hostnames USING btree (name); -- --- TOC entry 48 (OID 536419) +-- TOC entry 62 (OID 536419) -- Name: pages_url_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -515,15 +650,7 @@ CREATE UNIQUE INDEX pages_url_uq ON pages USING btree (hostid, url); -- --- TOC entry 53 (OID 536924) --- Name: email_notify_email_uq; Type: INDEX; Schema: public; Owner: rich --- - -CREATE UNIQUE INDEX email_notify_email_uq ON email_notify USING btree (hostid, email); - - --- --- TOC entry 54 (OID 540251) +-- TOC entry 67 (OID 540251) -- Name: images_name_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -531,7 +658,7 @@ CREATE UNIQUE INDEX images_name_uq ON images USING btree (hostid, name); -- --- TOC entry 56 (OID 540252) +-- TOC entry 69 (OID 540252) -- Name: files_name_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -539,7 +666,7 @@ CREATE UNIQUE INDEX files_name_uq ON files USING btree (hostid, name); -- --- TOC entry 59 (OID 540831) +-- TOC entry 72 (OID 540831) -- Name: users_name_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -547,7 +674,7 @@ CREATE UNIQUE INDEX users_name_uq ON users USING btree (hostid, name); -- --- TOC entry 58 (OID 540946) +-- TOC entry 71 (OID 540946) -- Name: users_id_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -555,7 +682,7 @@ CREATE UNIQUE INDEX users_id_uq ON users USING btree (hostid, id); -- --- TOC entry 61 (OID 540970) +-- TOC entry 74 (OID 540970) -- Name: sitemenu_ordering_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -563,7 +690,7 @@ CREATE UNIQUE INDEX sitemenu_ordering_uq ON sitemenu USING btree (hostid, orderi -- --- TOC entry 62 (OID 540971) +-- TOC entry 75 (OID 540971) -- Name: sitemenu_url_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -571,7 +698,7 @@ CREATE UNIQUE INDEX sitemenu_url_uq ON sitemenu USING btree (hostid, url); -- --- TOC entry 65 (OID 542626) +-- TOC entry 78 (OID 542626) -- Name: contact_emails_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -579,7 +706,7 @@ CREATE UNIQUE INDEX contact_emails_uq ON contact_emails USING btree (contactid, -- --- TOC entry 66 (OID 543505) +-- TOC entry 79 (OID 543505) -- Name: themes_theme_css_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -587,7 +714,7 @@ CREATE UNIQUE INDEX themes_theme_css_uq ON themes USING btree (theme_css); -- --- TOC entry 67 (OID 543763) +-- TOC entry 80 (OID 543763) -- Name: page_emails_email_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -595,7 +722,7 @@ CREATE UNIQUE INDEX page_emails_email_uq ON page_emails USING btree (hostid, url -- --- TOC entry 68 (OID 543795) +-- TOC entry 81 (OID 543795) -- Name: mailing_lists_email_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -603,7 +730,7 @@ CREATE UNIQUE INDEX mailing_lists_email_uq ON mailing_lists USING btree (hostid, -- --- TOC entry 63 (OID 543880) +-- TOC entry 76 (OID 543880) -- Name: contacts_name_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -611,7 +738,7 @@ CREATE UNIQUE INDEX contacts_name_uq ON contacts USING btree (hostid, name); -- --- TOC entry 69 (OID 544454) +-- TOC entry 82 (OID 544454) -- Name: links_uq; Type: INDEX; Schema: public; Owner: rich -- @@ -619,7 +746,63 @@ CREATE UNIQUE INDEX links_uq ON links USING btree (hostid, from_url, to_url); -- --- TOC entry 47 (OID 536012) +-- TOC entry 83 (OID 547951) +-- Name: templates_ext_ord_uq; Type: INDEX; Schema: public; Owner: rich +-- + +CREATE UNIQUE INDEX templates_ext_ord_uq ON templates USING btree (extension, ordering); + + +-- +-- TOC entry 85 (OID 547952) +-- Name: templates_title_uq; Type: INDEX; Schema: public; Owner: rich +-- + +CREATE UNIQUE INDEX templates_title_uq ON templates USING btree (title_regexp); + + +-- +-- TOC entry 86 (OID 547953) +-- Name: templates_url_uq; Type: INDEX; Schema: public; Owner: rich +-- + +CREATE UNIQUE INDEX templates_url_uq ON templates USING btree (url_regexp); + + +-- +-- TOC entry 87 (OID 551151) +-- Name: recently_visited_uq; Type: INDEX; Schema: public; Owner: rich +-- + +CREATE UNIQUE INDEX recently_visited_uq ON recently_visited USING btree (userid, hostid, url); + + +-- +-- TOC entry 88 (OID 552155) +-- Name: messages_inet_message_id_uq; Type: INDEX; Schema: public; Owner: rich +-- + +CREATE UNIQUE INDEX messages_inet_message_id_uq ON messages USING btree (hostid, inet_message_id); + + +-- +-- TOC entry 61 (OID 552684) +-- Name: pages_url_ix; Type: INDEX; Schema: public; Owner: rich +-- + +CREATE INDEX pages_url_ix ON pages USING btree (url); + + +-- +-- TOC entry 60 (OID 552685) +-- Name: pages_redirect_ix; Type: INDEX; Schema: public; Owner: rich +-- + +CREATE INDEX pages_redirect_ix ON pages USING btree (redirect); + + +-- +-- TOC entry 59 (OID 536012) -- Name: pages_pkey; Type: CONSTRAINT; Schema: public; Owner: rich -- @@ -628,7 +811,7 @@ ALTER TABLE ONLY pages -- --- TOC entry 49 (OID 536027) +-- TOC entry 63 (OID 536027) -- Name: contents_pkey; Type: CONSTRAINT; Schema: public; Owner: rich -- @@ -637,7 +820,7 @@ ALTER TABLE ONLY contents -- --- TOC entry 50 (OID 536377) +-- TOC entry 64 (OID 536377) -- Name: hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: rich -- @@ -646,7 +829,7 @@ ALTER TABLE ONLY hosts -- --- TOC entry 55 (OID 537158) +-- TOC entry 68 (OID 537158) -- Name: images_pkey; Type: CONSTRAINT; Schema: public; Owner: rich -- @@ -655,7 +838,7 @@ ALTER TABLE ONLY images -- --- TOC entry 57 (OID 537173) +-- TOC entry 70 (OID 537173) -- Name: files_pkey; Type: CONSTRAINT; Schema: public; Owner: rich -- @@ -664,7 +847,7 @@ ALTER TABLE ONLY files -- --- TOC entry 60 (OID 540825) +-- TOC entry 73 (OID 540825) -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: rich -- @@ -673,7 +856,7 @@ ALTER TABLE ONLY users -- --- TOC entry 64 (OID 542611) +-- TOC entry 77 (OID 542611) -- Name: contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: rich -- @@ -682,7 +865,43 @@ ALTER TABLE ONLY contacts -- --- TOC entry 74 (OID 536029) +-- TOC entry 84 (OID 547945) +-- Name: templates_pkey; Type: CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY templates + ADD CONSTRAINT templates_pkey PRIMARY KEY (id); + + +-- +-- TOC entry 89 (OID 551681) +-- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY messages + ADD CONSTRAINT messages_pkey PRIMARY KEY (id); + + +-- +-- TOC entry 90 (OID 607081) +-- Name: powered_by_pkey; Type: CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY powered_by + ADD CONSTRAINT powered_by_pkey PRIMARY KEY (id); + + +-- +-- TOC entry 91 (OID 607141) +-- Name: pending_email_changes_pkey; Type: CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY pending_email_changes + ADD CONSTRAINT pending_email_changes_pkey PRIMARY KEY ("key"); + + +-- +-- TOC entry 96 (OID 536029) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -691,7 +910,7 @@ ALTER TABLE ONLY contents -- --- TOC entry 77 (OID 536384) +-- TOC entry 100 (OID 536384) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -700,7 +919,7 @@ ALTER TABLE ONLY hostnames -- --- TOC entry 75 (OID 536394) +-- TOC entry 97 (OID 536394) -- Name: hosts_hostname_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -709,7 +928,7 @@ ALTER TABLE ONLY hosts -- --- TOC entry 70 (OID 536404) +-- TOC entry 92 (OID 536404) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -718,16 +937,7 @@ ALTER TABLE ONLY pages -- --- TOC entry 78 (OID 536920) --- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich --- - -ALTER TABLE ONLY email_notify - ADD CONSTRAINT "$1" FOREIGN KEY (hostid) REFERENCES hosts(id); - - --- --- TOC entry 79 (OID 537160) +-- TOC entry 101 (OID 537160) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -736,7 +946,7 @@ ALTER TABLE ONLY images -- --- TOC entry 80 (OID 537175) +-- TOC entry 102 (OID 537175) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -745,7 +955,7 @@ ALTER TABLE ONLY files -- --- TOC entry 71 (OID 539155) +-- TOC entry 93 (OID 539155) -- Name: pages_redirect_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -754,7 +964,7 @@ ALTER TABLE ONLY pages -- --- TOC entry 81 (OID 540827) +-- TOC entry 103 (OID 540827) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -763,7 +973,7 @@ ALTER TABLE ONLY users -- --- TOC entry 82 (OID 540837) +-- TOC entry 104 (OID 540837) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -772,7 +982,7 @@ ALTER TABLE ONLY usercookies -- --- TOC entry 72 (OID 540942) +-- TOC entry 94 (OID 540942) -- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -781,7 +991,7 @@ ALTER TABLE ONLY pages -- --- TOC entry 73 (OID 540947) +-- TOC entry 95 (OID 540947) -- Name: pages_user_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -790,7 +1000,7 @@ ALTER TABLE ONLY pages -- --- TOC entry 83 (OID 540966) +-- TOC entry 105 (OID 540966) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -799,7 +1009,7 @@ ALTER TABLE ONLY sitemenu -- --- TOC entry 84 (OID 540972) +-- TOC entry 106 (OID 540972) -- Name: sitemenu_url_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -808,7 +1018,7 @@ ALTER TABLE ONLY sitemenu -- --- TOC entry 85 (OID 542613) +-- TOC entry 107 (OID 542613) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -817,7 +1027,7 @@ ALTER TABLE ONLY contacts -- --- TOC entry 86 (OID 542622) +-- TOC entry 108 (OID 542622) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -826,7 +1036,7 @@ ALTER TABLE ONLY contact_emails -- --- TOC entry 76 (OID 543506) +-- TOC entry 98 (OID 543506) -- Name: hosts_theme_css_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -835,7 +1045,7 @@ ALTER TABLE ONLY hosts -- --- TOC entry 87 (OID 543759) +-- TOC entry 109 (OID 543759) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -844,7 +1054,7 @@ ALTER TABLE ONLY page_emails -- --- TOC entry 88 (OID 543764) +-- TOC entry 110 (OID 543764) -- Name: page_emails_url_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -853,7 +1063,7 @@ ALTER TABLE ONLY page_emails -- --- TOC entry 89 (OID 543791) +-- TOC entry 111 (OID 543791) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -862,7 +1072,7 @@ ALTER TABLE ONLY mailing_lists -- --- TOC entry 90 (OID 544450) +-- TOC entry 112 (OID 544450) -- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -871,7 +1081,7 @@ ALTER TABLE ONLY links -- --- TOC entry 91 (OID 544455) +-- TOC entry 113 (OID 544455) -- Name: links_from_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich -- @@ -880,12 +1090,75 @@ ALTER TABLE ONLY links -- --- TOC entry 92 (OID 544459) --- Name: links_to_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- TOC entry 114 (OID 551129) +-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich -- -ALTER TABLE ONLY links - ADD CONSTRAINT links_to_cn FOREIGN KEY (hostid, to_url) REFERENCES pages(hostid, url) DEFERRABLE; +ALTER TABLE ONLY recently_visited + ADD CONSTRAINT "$1" FOREIGN KEY (userid) REFERENCES users(id); + + +-- +-- TOC entry 115 (OID 551133) +-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY recently_visited + ADD CONSTRAINT "$2" FOREIGN KEY (hostid) REFERENCES hosts(id); + + +-- +-- TOC entry 116 (OID 551137) +-- Name: recently_visited_url_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY recently_visited + ADD CONSTRAINT recently_visited_url_cn FOREIGN KEY (hostid, url) REFERENCES pages(hostid, url) DEFERRABLE; + + +-- +-- TOC entry 117 (OID 551141) +-- Name: recently_visited_userid_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY recently_visited + ADD CONSTRAINT recently_visited_userid_cn FOREIGN KEY (hostid, userid) REFERENCES users(hostid, id); + + +-- +-- TOC entry 119 (OID 551690) +-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY msg_references + ADD CONSTRAINT "$1" FOREIGN KEY (message_id) REFERENCES messages(id); + + +-- +-- TOC entry 118 (OID 551694) +-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY messages + ADD CONSTRAINT "$1" FOREIGN KEY (hostid) REFERENCES hosts(id); + + +-- +-- TOC entry 99 (OID 607083) +-- Name: hosts_powered_by_cn; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY hosts + ADD CONSTRAINT hosts_powered_by_cn FOREIGN KEY (powered_by) REFERENCES powered_by(id); + + +-- +-- TOC entry 120 (OID 607143) +-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: rich +-- + +ALTER TABLE ONLY pending_email_changes + ADD CONSTRAINT "$1" FOREIGN KEY (userid) REFERENCES users(id); -- @@ -897,7 +1170,7 @@ COMMENT ON SCHEMA public IS 'Standard public namespace'; -- --- TOC entry 32 (OID 543592) +-- TOC entry 30 (OID 543592) -- Name: TABLE server_settings; Type: COMMENT; Schema: public; Owner: rich -- @@ -914,12 +1187,42 @@ SET check_function_bodies = false; SET search_path = public, pg_catalog; -- +-- Data for TOC entry 3 (OID 547939) +-- Name: templates; Type: TABLE DATA; Schema: public; Owner: rich +-- + +COPY templates (id, title_regexp, url_regexp, extension, ordering) FROM stdin; +1 ^(199[0-9]|20[0-9][0-9])/(0[1-9]|1[0-2])/(0[1-9]|1[0-9]|2[0-9]|3[01])$ ^(199[0-9]|20[0-9][0-9])/(0[1-9]|1[0-2])/(0[1-9]|1[0-9]|2[0-9]|3[01])$ calendar 10 +3 ^(199[0-9]|20[0-9][0-9])/(0[1-9]|1[0-2])$ ^(199[0-9]|20[0-9][0-9])/(0[1-9]|1[0-2])$ calendar 20 +4 ^(199[0-9]|20[0-9][0-9])$ ^(199[0-9]|20[0-9][0-9])$ calendar 30 +\. + + +-- +-- TOC entry 2 (OID 547937) +-- Name: templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rich +-- + +SELECT pg_catalog.setval('templates_id_seq', 4, true); + + +-- +-- PostgreSQL database dump +-- + +SET client_encoding = 'UNICODE'; +SET check_function_bodies = false; + +SET search_path = public, pg_catalog; + +-- -- Data for TOC entry 2 (OID 543499) -- Name: themes; Type: TABLE DATA; Schema: public; Owner: rich -- COPY themes (theme_css, name, description) FROM stdin; /_css/easyweb.css Merjis Easy Web Marketing This is the easy web marketing stylesheet developed by Merjis Ltd. Please see http://www.merjis.com/ +/_css/basic.css Basic styles only Only the most essential styles. This is a good starting point if you want to completely restyle pages using site-specific CSS. \.