Archived
1
0
Fork 0

DB Migration: 20180321203158_user_reg_date.php

This commit is contained in:
Henrik Hautakoski 2018-03-21 21:38:27 +01:00
parent a8d6317d94
commit 3ac1bfe40c

View file

@ -0,0 +1,18 @@
<?php
use Phinx\Migration\AbstractMigration;
class UserRegDate extends AbstractMigration
{
/**
* Add regdate column
*/
public function up()
{
$this->table('user')
->addColumn('regdate', 'datetime', [
'default' => 'CURRENT_TIMESTAMP',
'after' => 'email'
])->save();
}
}