Permalink
Browse files

user_agent truncation

user_agent was set to 50 characters and I raised it to 120 to avoid
truncating the user agent
  • Loading branch information...
Jonathan
Jonathan committed Nov 10, 2011
1 parent 7203faf commit 8e62cf1f0bf8b26d7fb8b8f1925f53744e4fe746
Showing with 21 additions and 45 deletions.
  1. +21 −45 dump.sql
View
@@ -1,53 +1,29 @@
--- phpMyAdmin SQL Dump
--- version 2.10.2
--- http://www.phpmyadmin.net
---
--- Host: localhost
--- Generation Time: Apr 25, 2009 at 10:56 PM
--- Server version: 5.0.41
--- PHP Version: 5.2.5
-
-SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
-
--- --------------------------------------------------------
-
---
--- Table structure for table `ci_sessions`
---
-
-CREATE TABLE IF NOT EXISTS `ci_sessions` (
- `session_id` varchar(40) NOT NULL default '0',
- `ip_address` varchar(16) NOT NULL default '0',
- `user_agent` varchar(50) NOT NULL,
- `last_activity` int(10) unsigned NOT NULL default '0',
+-- Create syntax for TABLE 'ci_sessions'
+CREATE TABLE `ci_sessions` (
+ `session_id` varchar(40) NOT NULL DEFAULT '0',
+ `ip_address` varchar(16) NOT NULL DEFAULT '0',
+ `user_agent` varchar(255) NOT NULL,
+ `last_activity` int(10) unsigned NOT NULL DEFAULT '0',
`user_data` text NOT NULL,
- PRIMARY KEY (`session_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+ PRIMARY KEY (`session_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--- --------------------------------------------------------
-
---
--- Table structure for table `groups`
---
-
-CREATE TABLE IF NOT EXISTS `groups` (
+-- Create syntax for TABLE 'groups'
+CREATE TABLE `groups` (
`id` int(11) NOT NULL,
- `title` varchar(20) NOT NULL default '',
- `description` varchar(100) NOT NULL default '',
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
---
--- Table structure for table `users`
---
-
-CREATE TABLE IF NOT EXISTS `users` (
- `id` int(11) NOT NULL auto_increment,
+ `title` varchar(20) NOT NULL DEFAULT '',
+ `description` varchar(100) NOT NULL DEFAULT '',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- Create syntax for TABLE 'users'
+CREATE TABLE `users` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
- `group_id` int(11) NOT NULL default '100',
+ `group_id` int(11) NOT NULL DEFAULT '100',
`token` varchar(255) NOT NULL,
`identifier` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;

0 comments on commit 8e62cf1

Please sign in to comment.