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:
parent
3fe8e2cc5d
commit
b6e23f5560
|
@ -21,4 +21,5 @@ EXTRA_DIST = \
|
||||||
zmalter-1.19.2.sql \
|
zmalter-1.19.2.sql \
|
||||||
zmalter-1.19.3.sql \
|
zmalter-1.19.3.sql \
|
||||||
zmalter-1.19.4.sql \
|
zmalter-1.19.4.sql \
|
||||||
zmalter-1.19.5.sql
|
zmalter-1.19.5.sql \
|
||||||
|
zmalter-1.20.0.sql
|
||||||
|
|
|
@ -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;
|
|
@ -200,7 +200,7 @@ CREATE TABLE TriggersX10 (
|
||||||
|
|
||||||
CREATE TABLE Users (
|
CREATE TABLE Users (
|
||||||
Id int(10) unsigned NOT NULL auto_increment,
|
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 '',
|
Password varchar(64) NOT NULL default '',
|
||||||
Language varchar(8) NOT NULL default '',
|
Language varchar(8) NOT NULL default '',
|
||||||
Enabled tinyint(3) unsigned NOT NULL default '1',
|
Enabled tinyint(3) unsigned NOT NULL default '1',
|
||||||
|
|
Loading…
Reference in New Issue