diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-04 06:58:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-04 06:58:44 +0000 |
commit | a7f67e01de1626b8cba850c325ccf12806d312c0 (patch) | |
tree | e19edd4cfc4bf7e89cd824c6f81a84ae3c700191 /modules/aggregator | |
parent | 3ffb612aeae073ba00c34181f8255e2702306d0a (diff) | |
download | brdo-a7f67e01de1626b8cba850c325ccf12806d312c0.tar.gz brdo-a7f67e01de1626b8cba850c325ccf12806d312c0.tar.bz2 |
- Patch #76681 by sammys: PostgreSQL support for install system. Woot! :)
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.install | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install index 9c9b52f1a..5d042cc02 100644 --- a/modules/aggregator/aggregator.install +++ b/modules/aggregator/aggregator.install @@ -56,5 +56,57 @@ function aggregator_install() { ) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); break; + case 'pgsql': + db_query("CREATE TABLE {aggregator_category} ( + cid serial, + title varchar(255) NOT NULL default '', + description text NOT NULL, + block smallint NOT NULL default '0', + PRIMARY KEY (cid), + UNIQUE (title) + )"); + + db_query("CREATE TABLE {aggregator_category_feed} ( + fid int NOT NULL default '0', + cid int NOT NULL default '0', + PRIMARY KEY (fid,cid) + )"); + + db_query("CREATE TABLE {aggregator_category_item} ( + iid int NOT NULL default '0', + cid int NOT NULL default '0', + PRIMARY KEY (iid,cid) + )"); + + db_query("CREATE TABLE {aggregator_feed} ( + fid serial, + title varchar(255) NOT NULL default '', + url varchar(255) NOT NULL default '', + refresh int NOT NULL default '0', + checked int NOT NULL default '0', + link varchar(255) NOT NULL default '', + description text NOT NULL, + image text NOT NULL, + etag varchar(255) NOT NULL default '', + modified int NOT NULL default '0', + block smallint NOT NULL default '0', + PRIMARY KEY (fid), + UNIQUE (url), + UNIQUE (title) + )"); + + db_query("CREATE TABLE {aggregator_item} ( + iid serial, + fid int NOT NULL default '0', + title varchar(255) NOT NULL default '', + link varchar(255) NOT NULL default '', + author varchar(255) NOT NULL default '', + description text NOT NULL, + timestamp int default NULL, + guid varchar(255), + PRIMARY KEY (iid) + )"); + + break; } } |