Updated for Users table.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@582 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2003-06-29 21:53:55 +00:00
parent 5afa02da6f
commit 01f9690515
2 changed files with 21 additions and 2 deletions

View File

@ -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;

View File

@ -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'
--