Version 1.2 ()
------------------------------------------------------------------------
+ * Change database types for IP addresses to varchar(64) to support
+ IPv6 (garvinhicking)
+
* Make statistics, karma and spamblock plugin only log 255 characters
of HTTP User-Agent and Referrer strings to the database, as the
fields are only varchar(255). Thanks to jemm4jemm!
}
// The version string
-$serendipity['version'] = '1.2-alpha3';
+$serendipity['version'] = '1.2-alpha4';
// Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'.
$serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true);
author varchar(80) default null,
email varchar(200) default null,
url varchar(200) default null,
- ip varchar(15) default null,
+ ip varchar(64) default null,
body text,
type varchar(100) default 'regular',
subscribed {BOOLEAN},
CREATE INDEX options_idx ON {PREFIX}options (okey);
CREATE TABLE {PREFIX}suppress (
- ip varchar(15) default NULL,
+ ip varchar(64) default NULL,
scheme varchar(5),
host varchar(128),
port varchar(5),
--- /dev/null
+ALTER TABLE {PREFIX}comments CHANGE ip ip VARCHAR(64) NOT NULL;
+ALTER TABLE {PREFIX}suppress CHANGE ip ip VARCHAR(65) NOT NULL;
\ No newline at end of file
--- /dev/null
+ALTER TABLE {PREFIX}comments ADD COLUMN oldip varchar(64);
+UPDATE {PREFIX}comments SET oldip = ip;
+ALTER TABLE {PREFIX}comments DROP ip;
+ALTER TABLE {PREFIX}comments ADD COLUMN ip varchar(64);
+UPDATE {PREFIX}comments SET ip = oldip;
+ALTER TABLE {PREFIX}comments DROP COLUMN oldip;
+
+ALTER TABLE {PREFIX}suppress ADD COLUMN oldip varchar(64);
+UPDATE {PREFIX}suppress SET oldip = ip;
+ALTER TABLE {PREFIX}suppress DROP ip;
+ALTER TABLE {PREFIX}suppress ADD COLUMN ip varchar(64);
+UPDATE {PREFIX}suppress SET ip = oldip;
+ALTER TABLE {PREFIX}suppress DROP COLUMN oldip;