Changed user password to be 64 chars to allow for longer MySQL hashes.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1046 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-05-04 10:05:42 +00:00
parent 5bffd2e549
commit dd4f11c9ed
4 changed files with 20 additions and 3 deletions

View File

@ -17,4 +17,5 @@ EXTRA_DIST = \
zmalter-1.18.0.sql \
zmalter-1.18.1.sql \
zmalter-1.19.0.sql \
zmalter-1.19.1.sql
zmalter-1.19.1.sql \
zmalter-1.19.2.sql

View File

@ -141,7 +141,8 @@ EXTRA_DIST = \
zmalter-1.18.0.sql \
zmalter-1.18.1.sql \
zmalter-1.19.0.sql \
zmalter-1.19.1.sql
zmalter-1.19.1.sql \
zmalter-1.19.2.sql
subdir = db
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs

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

@ -0,0 +1,15 @@
--
-- This updates a 1.19.2 database to 1.19.3
--
-- Make changes to Users table
--
alter table Users modify column Password varchar(64) not null default '';
--
-- These are optional, but we might as well
--
optimize table Frames;
optimize table Events;
optimize table Filters;
optimize table Zones;
optimize table Monitors;
optimize table Stats;

View File

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