rsstootalizer/migrations/0001-create_valid_from_on_u...

3 lines
143 B
MySQL
Raw Normal View History

2017-04-26 07:51:03 +00:00
ALTER TABLE `users` ADD `valid_from` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `session_id`;
UPDATE `users` SET `valid_from` = NOW();