- adding new table tblVersion containing the latest version of letodms

This commit is contained in:
steinm 2011-02-01 08:04:08 +00:00
parent 04e24354f2
commit e09085870f
2 changed files with 18 additions and 0 deletions

View File

@ -3,3 +3,10 @@ UPDATE tblUsers SET `role` = 1 WHERE `isAdmin` = 1;
UPDATE tblUsers SET `role` = 2 WHERE `id` = 2;
ALTER TABLE tblUsers DROP COLUMN isAdmin;
ALTER TABLE tblFolders ADD COLUMN `date` int(12) default NULL AFTER `comment`;
CREATE TABLE `tblVersion` (
`date` datetime,
`major` smallint,
`minor` smallint,
`subminor` smallint
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO tblVersion VALUES (NOW(), 3, 0, 0);

View File

@ -418,6 +418,16 @@ CREATE TABLE `tblEvents` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for version
--
CREATE TABLE `tblVersion` (
`date` datetime,
`major` smallint,
`minor` smallint,
`subminor` smallint
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Initial content for database
@ -426,3 +436,4 @@ CREATE TABLE `tblEvents` (
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'address@server.com', '', '', '', 1, 0);
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0);
INSERT INTO tblFolders VALUES (1, 'DMS', 0, 'DMS root', UNIX_TIMESTAMP(), 1, 0, 2, 0);
INSERT INTO tblVersion VALUES (NOW(), 3, 0, 0);