diff --git a/db/zmalter-0.9.12.sql b/db/zmalter-0.9.12.sql index 4864d6d70..9bcb0eac1 100644 --- a/db/zmalter-0.9.12.sql +++ b/db/zmalter-0.9.12.sql @@ -1,7 +1,7 @@ -- -- This updates a 0.9.12 database to 0.9.13 -- --- Nothing to change +insert into Users values ('','admin',password('admin'),1,'View','Edit','Edit','Edit',NULL); -- -- These are optional, it just seemed a good time... optimize table Frames; diff --git a/db/zmschema.sql.z b/db/zmschema.sql.z index 4bda00962..fcf731996 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -2,7 +2,7 @@ -- -- Host: localhost Database: ZM_DB_NAME --------------------------------------------------------- --- Server version 3.23.49 +-- Server version 3.23.49 -- -- Current Database: ZM_DB_NAME @@ -136,6 +136,25 @@ CREATE TABLE Stats ( KEY ZoneId (ZoneId) ) TYPE=MyISAM; +-- +-- Table structure for table 'Users' +-- + +CREATE TABLE Users ( + Id int(10) unsigned NOT NULL auto_increment, + Username varchar(32) NOT NULL default '', + Password varchar(32) NOT NULL default '', + Enabled tinyint(3) unsigned NOT NULL default '1', + Stream enum('None','View') NOT NULL default 'None', + Events enum('None','View','Edit') NOT NULL default 'None', + Monitors enum('None','View','Edit') NOT NULL default 'None', + System enum('None','View','Edit') NOT NULL default 'None', + MonitorIds tinytext, + PRIMARY KEY (Id), + UNIQUE KEY UC_Id (Id), + UNIQUE KEY UC_Username (Username) +) TYPE=MyISAM; + -- -- Table structure for table 'Zones' --