|
|
@@ -1,7 +1,8 @@
|
|
|
<?php
|
|
|
|
|
|
+declare(strict_types=1);
|
|
|
+
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
-use think\migration\db\Column;
|
|
|
|
|
|
class NotificationsTimstamp extends AbstractMigration
|
|
|
{
|
|
|
@@ -33,8 +34,8 @@ class NotificationsTimstamp extends AbstractMigration
|
|
|
->removeColumn('update_time')
|
|
|
->removeColumn('delete_time')
|
|
|
->update();
|
|
|
- $table->addTimestamps()
|
|
|
- ->addSoftDelete()
|
|
|
+ $table->addTimestamps('create_time', 'update_time')
|
|
|
+ ->addColumn('delete_time', 'timestamp', ['null' => true, 'comment' => '删除时间'])
|
|
|
->update();
|
|
|
}
|
|
|
public function down()
|