Renamed field to password_changed_at and type INT #102

This commit is contained in:
Lorenzo Milesi
2018-02-06 19:04:27 +01:00
parent c004a7c4c1
commit 4583f147ff
3 changed files with 8 additions and 8 deletions

View File

@ -17,11 +17,11 @@ class m000000_000007_enable_password_expiration extends Migration
{
public function safeUp()
{
$this->addColumn('{{%user}}', 'last_password_change', $this->timestamp()->null());
$this->addColumn('{{%user}}', 'password_changed_at', $this->int()->null());
}
public function safeDown()
{
$this->dropColumn('{{%user}}', 'last_password_change');
$this->dropColumn('{{%user}}', 'password_changed_at');
}
}