soft delete user
This commit is contained in:
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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user