seeddms-code/UPDATE-v3.0.0/update.sql
2010-12-14 12:16:39 +00:00

6 lines
309 B
SQL

ALTER TABLE tblUsers ADD COLUMN `role` smallint(1) NOT NULL default '0' AFTER `isAdmin`;
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`;