| Current Path : /var/git/cesa-v3/scripts/ |
| Current File : //var/git/cesa-v3/scripts/upgrade-database-to-symfony-system.sql |
-- change userlevels to InnoDB engine SET FOREIGN_KEY_CHECKS=0; START TRANSACTION; -- -- Database: `cesa_main` -- -- -------------------------------------------------------- -- -- Table structure for table `userlevels` -- DROP TABLE IF EXISTS `userlevels`; CREATE TABLE IF NOT EXISTS `userlevels` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userlevelid` int(11) NOT NULL, `userlevelname` varchar(50) NOT NULL, `roles` longtext DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `userlevels` -- INSERT INTO `userlevels` (`id`, `userlevelid`, `userlevelname`, `roles`) VALUES (1, -1, 'Administrator', NULL), (2, 0, 'Default', NULL), (3, 1, 'NLC and Branches', NULL), (4, 2, 'Committees', NULL), (5, 3, 'Edit All', NULL), (6, 4, 'School', NULL), (7, 5, 'Committees and Recruitment', NULL), (8, 6, 'eNews', NULL), (9, 7, 'Accounts', NULL), (10, 8, 'MSD Reports', NULL), (11, 9, 'School External User', NULL), (12, 10, 'CPD Validations', NULL), (13, 11, 'CPD Validation Reviewer', NULL); SET FOREIGN_KEY_CHECKS=1; COMMIT; -- Old table: DROP TABLE IF EXISTS `userlevels`; CREATE TABLE IF NOT EXISTS `userlevels` ( `userlevelid` int(11) NOT NULL, `userlevelname` varchar(80) NOT NULL, PRIMARY KEY (`userlevelid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; -- -- Dumping data for table `userlevels` -- INSERT INTO `userlevels` (`userlevelid`, `userlevelname`) VALUES (-1, 'Administrator'), (0, 'Default'), (1, 'NLC and Branches'), (2, 'Committees'), (3, 'Edit All'), (4, 'School'), (5, 'Committees and Recruitment'), (6, 'eNews'), (7, 'Accounts'), (8, 'MSD Reports'), (9, 'School External User'), (10, 'CPD Validations'), (11, 'CPD Validation Reviewer');