Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* sample timestamp migrations cakephp 3 */
- $this->table('page_history')
- ->addColumn('last_page', 'string', [
- 'default' => '',
- 'limit' => 100,
- 'null' => false,
- ])
- ->addColumn('visit_on', 'timestamp', [
- 'default' => 'CURRENT_TIMESTAMP',
- 'update' => 'CURRENT_TIMESTAMP',
- 'null' => false,
- ])
- ->addIndex(['id'])
- ->create();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement