Skip to content
Snippets Groups Projects
Commit cfc6ff6b authored by MELERIX's avatar MELERIX
Browse files

BETA: Moved part of 20110831update.sql to 20110831maintenance.sql because...

BETA: Moved part of 20110831update.sql to 20110831maintenance.sql because should be executed only one time (manually by server admins and only updating from a L2J Server before 2011/08/31) not in every update or it will screw the date in "createDate" column at character table.
parent 71f7bdf2
No related branches found
No related tags found
No related merge requests found
ALTER TABLE `characters` ADD `createDate` date NOT NULL DEFAULT '0000-00-00' AFTER `createTime`;
UPDATE `characters` SET `createDate`=FROM_UNIXTIME(`createTime`/1000, '%Y-%m%-%d');
UPDATE `characters` SET `createDate`=CURDATE() WHERE `createDate`='0000-00-00';
ALTER TABLE `characters` DROP `createTime`;
......
UPDATE `characters` SET `createDate`=FROM_UNIXTIME(`createTime`/1000, '%Y-%m%-%d');
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment