From: djmcgrath Date: Mon, 17 Mar 2008 16:45:38 +0000 (+0000) Subject: * Removed unused tables until needed X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1ba926dbc34b461708832b72ac4ae7df8512d314;p=infobot.git * Removed unused tables until needed git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1641 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/setup/mysql/connections.sql b/setup/mysql/connections.sql deleted file mode 100644 index 51ab71e..0000000 --- a/setup/mysql/connections.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE connections ( - `server` VARCHAR(30) NOT NULL, - `port` INT NOT NULL DEFAULT '6667', - `nick` VARCHAR(20) NOT NULL, - `nickservpass` VARCHAR(8) NOT NULL, - `ircname` VARCHAR (20) NOT NULL DEFAULT 'infobot', - `timeadded` INT UNSIGNED DEFAULT '0', - PRIMARY KEY (server,port,nick) -); diff --git a/setup/mysql/freshmeat.sql b/setup/mysql/freshmeat.sql deleted file mode 100644 index fc63418..0000000 --- a/setup/mysql/freshmeat.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE TABLE `freshmeat` ( - `projectname_short` VARCHAR(64) NOT NULL, - `latest_version` VARCHAR(32) DEFAULT 'none' NOT NULL, - `license` VARCHAR(32), - `url_homepage` VARCHAR(128), - `desc_short` VARCHAR(96) NOT NULL, - PRIMARY KEY (`projectname_short`,`latest_version`) -); diff --git a/setup/mysql/news.sql b/setup/mysql/news.sql deleted file mode 100644 index 4f14da6..0000000 --- a/setup/mysql/news.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE TABLE `news` ( - `channel` VARCHAR(30) NOT NULL, - `id` INT UNSIGNED DEFAULT '0', - `key` VARCHAR(16) NOT NULL, - `value` TEXT NOT NULL, - PRIMARY KEY (`channel`,`id`,`key`) -); diff --git a/setup/mysql/uptime.sql b/setup/mysql/uptime.sql deleted file mode 100644 index 79ebab7..0000000 --- a/setup/mysql/uptime.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE TABLE `uptime` ( - `uptime` INT UNSIGNED DEFAULT '0', # start. - `endtime` INT UNSIGNED DEFAULT '0', # end. - `string` VARCHAR(128) NOT NULL, - PRIMARY KEY (`uptime`) -); diff --git a/setup/pgsql/connections.sql b/setup/pgsql/connections.sql deleted file mode 100644 index 7b9872e..0000000 --- a/setup/pgsql/connections.sql +++ /dev/null @@ -1,13 +0,0 @@ -CREATE TABLE connections ( - server character varying(30) NOT NULL, - port integer DEFAULT 6667 NOT NULL, - nick character varying(20) NOT NULL, - nickservpass character varying(8) NOT NULL, - ircname character varying(20) DEFAULT 'infobot IRC bot'::character varying NOT NULL, - timeadded numeric DEFAULT 0 -) WITHOUT OIDS; - -REVOKE ALL ON TABLE connections FROM PUBLIC; - -ALTER TABLE ONLY connections - ADD CONSTRAINT connections_pkey PRIMARY KEY (server, port, nick); diff --git a/setup/pgsql/freshmeat.sql b/setup/pgsql/freshmeat.sql deleted file mode 100644 index 873e2dd..0000000 --- a/setup/pgsql/freshmeat.sql +++ /dev/null @@ -1,12 +0,0 @@ -CREATE TABLE freshmeat ( - projectname_short VARCHAR(64) NOT NULL, - latest_version VARCHAR(32) DEFAULT 'none'::VARCHAR NOT NULL, - license VARCHAR(32), - url_homepage VARCHAR(128), - desc_short VARCHAR(96) NOT NULL -) WITHOUT OIDS; - -REVOKE ALL ON TABLE freshmeat FROM PUBLIC; - -ALTER TABLE ONLY freshmeat - ADD CONSTRAINT freshmeat_pkey PRIMARY KEY (projectname_short, latest_version); diff --git a/setup/pgsql/news.sql b/setup/pgsql/news.sql deleted file mode 100644 index 585785e..0000000 --- a/setup/pgsql/news.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE TABLE news ( - channel VARCHAR(30) NOT NULL, - id numeric DEFAULT 0 NOT NULL, - "key" VARCHAR(16) NOT NULL, - value text NOT NULL -) WITHOUT OIDS; - -REVOKE ALL ON TABLE news FROM PUBLIC; - -ALTER TABLE ONLY news - ADD CONSTRAINT news_pkey PRIMARY KEY (channel, id, "key"); diff --git a/setup/pgsql/uptime.sql b/setup/pgsql/uptime.sql deleted file mode 100644 index 49bcd63..0000000 --- a/setup/pgsql/uptime.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE TABLE uptime ( - uptime numeric DEFAULT 0, - endtime numeric DEFAULT 0, - string VARCHAR(128) NOT NULL -) WITHOUT OIDS; - -REVOKE ALL ON TABLE uptime FROM PUBLIC; - -ALTER TABLE ONLY uptime - ADD CONSTRAINT uptime_pkey PRIMARY KEY (uptime); diff --git a/setup/sqlite/connections.sql b/setup/sqlite/connections.sql deleted file mode 100644 index d1256c1..0000000 --- a/setup/sqlite/connections.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE connections ( - server VARCHAR(30) NOT NULL, - port INT NOT NULL DEFAULT '6667', - nick VARCHAR(20) NOT NULL, - nickservpass VARCHAR(8) NOT NULL, - ircname VARCHAR (20) NOT NULL DEFAULT 'infobot experimental bot', - timeadded INT UNSIGNED DEFAULT 'UNIX_TIMESTAMP()', - PRIMARY KEY (server,port,nick) -); diff --git a/setup/sqlite/freshmeat.sql b/setup/sqlite/freshmeat.sql deleted file mode 100644 index 4b4f42b..0000000 --- a/setup/sqlite/freshmeat.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE TABLE freshmeat ( - projectname_short VARCHAR(64) NOT NULL, - latest_version VARCHAR(32) DEFAULT 'none' NOT NULL, - license VARCHAR(32), - url_homepage VARCHAR(128), - desc_short VARCHAR(96) NOT NULL, - PRIMARY KEY (projectname_short,latest_version) -); diff --git a/setup/sqlite/news.sql b/setup/sqlite/news.sql deleted file mode 100644 index 274e656..0000000 --- a/setup/sqlite/news.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE TABLE news ( - channel VARCHAR(30) NOT NULL, - id INT UNSIGNED DEFAULT '0', - key VARCHAR(16) NOT NULL, - value TEXT NOT NULL, # limit to ~450 or so. - PRIMARY KEY (channel,id,key) -); diff --git a/setup/sqlite/uptime.sql b/setup/sqlite/uptime.sql deleted file mode 100644 index 373902a..0000000 --- a/setup/sqlite/uptime.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE TABLE uptime ( - uptime INT UNSIGNED DEFAULT '0', # start. - endtime INT UNSIGNED DEFAULT '0', # end. - string VARCHAR(128) NOT NULL, - PRIMARY KEY (uptime) -); diff --git a/setup/sqlite2/connections.sql b/setup/sqlite2/connections.sql deleted file mode 100644 index fa70517..0000000 --- a/setup/sqlite2/connections.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE connections ( - server VARCHAR(30) NOT NULL, - port INT NOT NULL DEFAULT '6667', - nick VARCHAR(20) NOT NULL, - nickservpass VARCHAR(8) NOT NULL, - ircname VARCHAR (20) NOT NULL DEFAULT 'infobot - perl irc bot', - timeadded INT UNSIGNED DEFAULT 'UNIX_TIMESTAMP()', - PRIMARY KEY (server,port,nick) -); diff --git a/setup/sqlite2/freshmeat.sql b/setup/sqlite2/freshmeat.sql deleted file mode 100644 index 4b4f42b..0000000 --- a/setup/sqlite2/freshmeat.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE TABLE freshmeat ( - projectname_short VARCHAR(64) NOT NULL, - latest_version VARCHAR(32) DEFAULT 'none' NOT NULL, - license VARCHAR(32), - url_homepage VARCHAR(128), - desc_short VARCHAR(96) NOT NULL, - PRIMARY KEY (projectname_short,latest_version) -); diff --git a/setup/sqlite2/news.sql b/setup/sqlite2/news.sql deleted file mode 100644 index 199e468..0000000 --- a/setup/sqlite2/news.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE TABLE news ( - channel VARCHAR(30) NOT NULL, - id INT UNSIGNED DEFAULT '0', - key VARCHAR(16) NOT NULL, - value TEXT NOT NULL, - PRIMARY KEY (channel,id,key) -); --- limit value to ~450 or so. diff --git a/setup/sqlite2/uptime.sql b/setup/sqlite2/uptime.sql deleted file mode 100644 index 7721072..0000000 --- a/setup/sqlite2/uptime.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE uptime ( - uptime INT UNSIGNED DEFAULT '0', - endtime INT UNSIGNED DEFAULT '0', - string VARCHAR(128) NOT NULL, - PRIMARY KEY (uptime) -); - --- uptime is start time --- endtime is endtime :)