Permalink
Browse files

IPv6 Compatability

  • Loading branch information...
1 parent 4d0413d commit 84d06edb06433c980dc7718188fcdd0799b08c09 @thomascube thomascube committed Sep 19, 2007
View
@@ -58,7 +58,7 @@ CREATE TABLE [dbo].[session] (
[sess_id] [varchar] (32) COLLATE Latin1_General_CI_AI NOT NULL ,
[created] [datetime] NOT NULL ,
[changed] [datetime] NULL ,
- [ip] [varchar] (15) COLLATE Latin1_General_CI_AI NOT NULL ,
+ [ip] [varchar] (40) COLLATE Latin1_General_CI_AI NOT NULL ,
[vars] [text] COLLATE Latin1_General_CI_AI NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
View
@@ -73,7 +73,7 @@ CREATE TABLE `session` (
`sess_id` varchar(40) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`changed` datetime NOT NULL default '0000-00-00 00:00:00',
- `ip` VARCHAR(15) NOT NULL default '',
+ `ip` VARCHAR(40) NOT NULL default '',
`vars` text NOT NULL,
PRIMARY KEY (`sess_id`)
);
@@ -2,7 +2,7 @@
-- Updates from version 0.1-20051007
-ALTER TABLE `session` ADD `ip` VARCHAR(15) NOT NULL AFTER changed;
+ALTER TABLE `session` ADD `ip` VARCHAR(40) NOT NULL AFTER changed;
ALTER TABLE `users` ADD `alias` VARCHAR(128) NOT NULL AFTER mail_host;
View
@@ -12,6 +12,8 @@ ALTER TABLE `messages`
ALTER TABLE `identities`
ADD `html_signature` tinyint(1) default 0 NOT NULL;
+ALTER TABLE `session` CHANGE `ip` `ip` VARCHAR(40)
+
-- Uncomment these lines if you're using MySQL 4.1 or higher
-- ALTER TABLE `users`
-- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci,
View
@@ -12,7 +12,7 @@ CREATE TABLE `session` (
`sess_id` varchar(40) NOT NULL,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ip` varchar(15) NOT NULL,
+ `ip` varchar(40) NOT NULL,
`vars` text NOT NULL,
PRIMARY KEY(`sess_id`)
) TYPE=MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
View
@@ -36,7 +36,7 @@ CREATE TABLE "session" (
sess_id character varying(40) DEFAULT ''::character varying PRIMARY KEY,
created timestamp with time zone DEFAULT now() NOT NULL,
changed timestamp with time zone DEFAULT now() NOT NULL,
- ip character varying(16) NOT NULL,
+ ip character varying(41) NOT NULL,
vars text NOT NULL
);
View
@@ -93,7 +93,7 @@ CREATE TABLE session (
sess_id varchar(40) NOT NULL PRIMARY KEY,
created datetime NOT NULL default '0000-00-00 00:00:00',
changed datetime NOT NULL default '0000-00-00 00:00:00',
- ip varchar(15) NOT NULL default '',
+ ip varchar(40) NOT NULL default '',
vars text NOT NULL
);

1 comment on commit 84d06ed

Thanks a lot for it. That's why I had weird problems with the sessions when using IPv6. This point fixed it.

Please sign in to comment.