MATSUNO★…Tokuhiro
and 1 contributors

NAME

Karas::Plugin::Timestamp - Timestamp plugin

DESCRIPTION

This is a timestamp plugin for Karas.

If your tables has created_on or updated_on columns.

AFTER MYSQL 5.6

MySQL 5.6 supports more flexible timestamp management.

You can use following style.

    CREATE TABLE t1 (
        created_on DATETIME DEFAULT CURRENT_TIMESTAMP,
        updated_on DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    );

See this URL for more details: https://dev.mysql.com/doc/refman/5.6/en/timestamp-initialization.html http://optimize-this.blogspot.co.uk/2012/04/datetime-default-now-finally-available.html