diff --git a/db/Makefile.am b/db/Makefile.am index 30c49a266..e356db7a8 100644 --- a/db/Makefile.am +++ b/db/Makefile.am @@ -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 diff --git a/db/Makefile.in b/db/Makefile.in index 265366697..e00a33e80 100644 --- a/db/Makefile.in +++ b/db/Makefile.in @@ -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 diff --git a/db/zmalter-1.19.2.sql b/db/zmalter-1.19.2.sql new file mode 100644 index 000000000..03e5c5316 --- /dev/null +++ b/db/zmalter-1.19.2.sql @@ -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; diff --git a/db/zmschema.sql.z b/db/zmschema.sql.z index 1e5bbbeba..acaae8752 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -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',