mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
6 lines
309 B
SQL
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`;
|