Modified Username in Users table to be binary type.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1246 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-01-26 21:30:40 +00:00
parent 3fe8e2cc5d
commit b6e23f5560
3 changed files with 18 additions and 2 deletions

View File

@ -21,4 +21,5 @@ EXTRA_DIST = \
zmalter-1.19.2.sql \
zmalter-1.19.3.sql \
zmalter-1.19.4.sql \
zmalter-1.19.5.sql
zmalter-1.19.5.sql \
zmalter-1.20.0.sql

15
db/zmalter-1.20.0.sql Normal file
View File

@ -0,0 +1,15 @@
--
-- This updates a 1.20.0 database to 1.20.1
--
-- Make changes to Users table
--
alter table Users modify column Username varchar(32) BINARY NOT NULL default '';
--
-- These are optional, but we might as well do it now
--
optimize table Frames;
optimize table Events;
optimize table Filters;
optimize table Zones;
optimize table Monitors;
optimize table Stats;

View File

@ -200,7 +200,7 @@ CREATE TABLE TriggersX10 (
CREATE TABLE Users (
Id int(10) unsigned NOT NULL auto_increment,
Username varchar(32) NOT NULL default '',
Username varchar(32) BINARY NOT NULL default '',
Password varchar(64) NOT NULL default '',
Language varchar(8) NOT NULL default '',
Enabled tinyint(3) unsigned NOT NULL default '1',