diff --git a/db/Makefile.am b/db/Makefile.am index c86972988..defa4161c 100644 --- a/db/Makefile.am +++ b/db/Makefile.am @@ -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 diff --git a/db/zmalter-1.20.0.sql b/db/zmalter-1.20.0.sql new file mode 100644 index 000000000..de5e10ac3 --- /dev/null +++ b/db/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; diff --git a/db/zmschema.sql.z b/db/zmschema.sql.z index b9cf6c723..892fad349 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -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',