fixed upgrade.sql

parent c5e73e2d
Showing with 5 additions and 3 deletions
......@@ -15,7 +15,9 @@ ALTER TABLE student MODIFY gender CHAR(1) DEFAULT NULL;
ALTER TABLE student MODIFY country CHAR(2) DEFAULT NULL;
ALTER TABLE student MODIFY lang VARCHAR(5) DEFAULT NULL;
ALTER TABLE license ADD type enum('trial', 'official') NOT NULL DEFAULT 'official';
ALTER TABLE license ADD `type` enum('trial','official') NOT NULL DEFAULT 'official';
DROP TABLE IF EXISTS `sup_off`;
CREATE TABLE `sup_off` (
`id` int(11) NOT NULL AUTO_INCREMENT,
......@@ -42,8 +44,8 @@ SET role = 'tutor'
WHERE id_off IS NULL;
UPDATE license
SET type = 'official'
WHERE type is not 'trial';
SET `type` = 'official'
WHERE `type` <> 'trial';
DELIMITER $$
DROP PROCEDURE IF EXISTS supervisor_adapt $$
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment