engelsystem/DB/change_db_to_v180.sql

4 lines
222 B
SQL

ALTER TABLE `User` ADD `CreateDate` DATETIME NULL AFTER `lastLogIn`;
ALTER TABLE `User` CHANGE `lastLogIn` `lastLogIn` DATETIME NOT NULL DEFAULT 'NOW()',
CHANGE `CreateDate` `CreateDate` DATETIME NOT NULL DEFAULT 'NOW()';