GUACAMOLE-163: Remove DEFAULT CURRENT_TIMESTAMP from guacamole_user's password_date column (compatibility with MySQL 5.5 and older).

This commit is contained in:
Michael Jumper
2017-01-22 11:58:41 -08:00
parent cdf7e2ce59
commit b69599e822
6 changed files with 20 additions and 8 deletions

View File

@@ -22,7 +22,12 @@
--
ALTER TABLE guacamole_user
ADD COLUMN password_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;
ADD COLUMN password_date DATETIME;
UPDATE guacamole_user SET password_date = NOW();
ALTER TABLE guacamole_user
MODIFY COLUMN password_date DATETIME NOT NULL;
--
-- User password history