###############################################################
# Database upgrade SQL from ATutor 1.5.4 to ATutor 1.5.5
###############################################################


## remove login field - #3032
ALTER TABLE `forums_threads` DROP `login`;

## refresh test issue - #2362
ALTER TABLE `tests_questions_assoc` DROP INDEX `test_id`;
ALTER TABLE `tests_results` ADD `status` TINYINT NOT NULL DEFAULT '0';

## times tests - #3084
ALTER TABLE `tests_results` ADD `end_time` TIMESTAMP NOT NULL ;

## end date - #3089
ALTER TABLE `courses` ADD `end_date` DATETIME default NULL AFTER `release_date`;
