Permalink
Browse files

Looks like dropping a wrongly defined column first is important

  • Loading branch information...
sergeychernyshev committed Sep 12, 2016
1 parent 240ec3c commit f4337098d55d7b64be407d7cdd17b2477725c145
Showing with 1 addition and 1 deletion.
  1. +1 −1 dbupgrade.php
View
@@ -23,11 +23,11 @@
* VERSION 36
* corrected type
*/
+$versions[36]['up'][] = 'ALTER TABLE u_users DROP COLUMN last_accessed';
$versions[36]['up'][] = "ALTER TABLE `u_user_badges` MODIFY COLUMN `time` DATETIME NULL
COMMENT 'Time when user got the badge'";
$versions[36]['up'][] = "ALTER TABLE `u_users` MODIFY COLUMN `email_verification_code_time` DATETIME NULL DEFAULT NULL
COMMENT 'Email verification code generation time'";
-$versions[36]['up'][] = 'ALTER TABLE u_users DROP COLUMN last_accessed';
$versions[36]['down'][] = "ALTER TABLE `u_user_badges` MODIFY COLUMN `time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT 'Time when user got the badge'";

0 comments on commit f433709

Please sign in to comment.