Karas::Plugin::Timestamp - Timestamp plugin
This is a timestamp plugin for Karas.
If your tables has created_on or updated_on columns.
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
To install Karas, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Karas
CPAN shell
perl -MCPAN -e shell install Karas
For more information on module installation, please visit the detailed CPAN module installation guide.