soft delete user

This commit is contained in:
apuc committed 2018-11-06 11:44:27 +03:00
1 parent 51952e8c0d
commit 0895403f39
8 files changed
+68 -18

No files matched your search

@@ -0,0 +1,25 @@
<?php
use yii\db\Migration;
/**
* Handles adding deleted_at to table `user_card`.
*/
class m181106_082016_add_deleted_at_column_to_user_card_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('user_card', 'deleted_at', $this->datetime());
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('user_card', 'deleted_at');
}
}