support IPv6 lengths
This commit is contained in:
parent
c367fbf6ab
commit
3e92cb82e4
@ -3,6 +3,9 @@
|
|||||||
Version 1.2 ()
|
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
|
* Make statistics, karma and spamblock plugin only log 255 characters
|
||||||
of HTTP User-Agent and Referrer strings to the database, as the
|
of HTTP User-Agent and Referrer strings to the database, as the
|
||||||
fields are only varchar(255). Thanks to jemm4jemm!
|
fields are only varchar(255). Thanks to jemm4jemm!
|
||||||
|
@ -42,7 +42,7 @@ if (defined('USE_MEMSNAP')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The version string
|
// 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'.
|
// 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);
|
$serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true);
|
||||||
|
@ -71,7 +71,7 @@ create table {PREFIX}comments (
|
|||||||
author varchar(80) default null,
|
author varchar(80) default null,
|
||||||
email varchar(200) default null,
|
email varchar(200) default null,
|
||||||
url varchar(200) default null,
|
url varchar(200) default null,
|
||||||
ip varchar(15) default null,
|
ip varchar(64) default null,
|
||||||
body text,
|
body text,
|
||||||
type varchar(100) default 'regular',
|
type varchar(100) default 'regular',
|
||||||
subscribed {BOOLEAN},
|
subscribed {BOOLEAN},
|
||||||
@ -184,7 +184,7 @@ create table {PREFIX}options (
|
|||||||
CREATE INDEX options_idx ON {PREFIX}options (okey);
|
CREATE INDEX options_idx ON {PREFIX}options (okey);
|
||||||
|
|
||||||
CREATE TABLE {PREFIX}suppress (
|
CREATE TABLE {PREFIX}suppress (
|
||||||
ip varchar(15) default NULL,
|
ip varchar(64) default NULL,
|
||||||
scheme varchar(5),
|
scheme varchar(5),
|
||||||
host varchar(128),
|
host varchar(128),
|
||||||
port varchar(5),
|
port varchar(5),
|
||||||
|
2
sql/db_update_1.2-alpha3_1.2_alpha4_mysql.sql
Normal file
2
sql/db_update_1.2-alpha3_1.2_alpha4_mysql.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ALTER TABLE {PREFIX}comments CHANGE ip ip VARCHAR(64) NOT NULL;
|
||||||
|
ALTER TABLE {PREFIX}suppress CHANGE ip ip VARCHAR(65) NOT NULL;
|
13
sql/db_update_1.2-alpha3_1.2_alpha4_postgres.sql
Normal file
13
sql/db_update_1.2-alpha3_1.2_alpha4_postgres.sql
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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;
|
0
sql/db_update_1.2-alpha3_1.2_alpha4_sqlite.sql
Normal file
0
sql/db_update_1.2-alpha3_1.2_alpha4_sqlite.sql
Normal file
Loading…
x
Reference in New Issue
Block a user