|
@@ -1,7 +1,8 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
|
|
+declare(strict_types=1);
|
|
|
|
|
+
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
-use think\migration\db\Column;
|
|
|
|
|
|
|
|
|
|
class ExtensionFilesystemCagegory extends AbstractMigration
|
|
class ExtensionFilesystemCagegory extends AbstractMigration
|
|
|
{
|
|
{
|
|
@@ -63,8 +64,8 @@ class ExtensionFilesystemCagegory extends AbstractMigration
|
|
|
'null' => false,
|
|
'null' => false,
|
|
|
'default' => 0,
|
|
'default' => 0,
|
|
|
'comment' => '文件数量'
|
|
'comment' => '文件数量'
|
|
|
- ])->addTimestamps()
|
|
|
|
|
- ->addSoftDelete()
|
|
|
|
|
|
|
+ ])->addTimestamps('create_time', 'update_time')
|
|
|
|
|
+ ->addColumn('delete_time', 'timestamp', ['null' => true, 'comment' => '删除时间'])
|
|
|
->create();
|
|
->create();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|