Skip to content

Commit

Permalink
IPv6 Compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Sep 19, 2007
1 parent 4d0413d commit 84d06ed
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SQL/mssql.initial.sql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CREATE TABLE [dbo].[session] (
[sess_id] [varchar] (32) COLLATE Latin1_General_CI_AI NOT NULL , [sess_id] [varchar] (32) COLLATE Latin1_General_CI_AI NOT NULL ,
[created] [datetime] NOT NULL , [created] [datetime] NOT NULL ,
[changed] [datetime] 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 [vars] [text] COLLATE Latin1_General_CI_AI NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO GO
Expand Down
2 changes: 1 addition & 1 deletion SQL/mysql.initial.sql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CREATE TABLE `session` (
`sess_id` varchar(40) NOT NULL default '', `sess_id` varchar(40) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00', `created` datetime NOT NULL default '0000-00-00 00:00:00',
`changed` 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, `vars` text NOT NULL,
PRIMARY KEY (`sess_id`) PRIMARY KEY (`sess_id`)
); );
Expand Down
2 changes: 1 addition & 1 deletion SQL/mysql.update-0.1a.sql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Updates from version 0.1-20051007 -- 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; ALTER TABLE `users` ADD `alias` VARCHAR(128) NOT NULL AFTER mail_host;




Expand Down
2 changes: 2 additions & 0 deletions SQL/mysql.update.sql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ALTER TABLE `messages`
ALTER TABLE `identities` ALTER TABLE `identities`
ADD `html_signature` tinyint(1) default 0 NOT NULL; 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 -- Uncomment these lines if you're using MySQL 4.1 or higher
-- ALTER TABLE `users` -- ALTER TABLE `users`
-- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci, -- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci,
Expand Down
2 changes: 1 addition & 1 deletion SQL/mysql5.initial.sql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CREATE TABLE `session` (
`sess_id` varchar(40) NOT NULL, `sess_id` varchar(40) NOT NULL,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`changed` 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, `vars` text NOT NULL,
PRIMARY KEY(`sess_id`) PRIMARY KEY(`sess_id`)
) TYPE=MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci; ) TYPE=MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
Expand Down
2 changes: 1 addition & 1 deletion SQL/postgres.initial.sql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CREATE TABLE "session" (
sess_id character varying(40) DEFAULT ''::character varying PRIMARY KEY, sess_id character varying(40) DEFAULT ''::character varying PRIMARY KEY,
created timestamp with time zone DEFAULT now() NOT NULL, created timestamp with time zone DEFAULT now() NOT NULL,
changed 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 vars text NOT NULL
); );


Expand Down
2 changes: 1 addition & 1 deletion SQL/sqlite.initial.sql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ CREATE TABLE session (
sess_id varchar(40) NOT NULL PRIMARY KEY, sess_id varchar(40) NOT NULL PRIMARY KEY,
created datetime NOT NULL default '0000-00-00 00:00:00', created datetime NOT NULL default '0000-00-00 00:00:00',
changed 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 vars text NOT NULL
); );


Expand Down

1 comment on commit 84d06ed

@CRtEurope
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.