|
@@ -1,7 +1,8 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
|
|
+declare(strict_types=1);
|
|
|
|
|
+
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
-use think\migration\db\Column;
|
|
|
|
|
|
|
|
|
|
class UserPoint extends AbstractMigration
|
|
class UserPoint extends AbstractMigration
|
|
|
{
|
|
{
|
|
@@ -34,10 +35,10 @@ class UserPoint extends AbstractMigration
|
|
|
'id' => false,
|
|
'id' => false,
|
|
|
'comment' => '用户积分表',
|
|
'comment' => '用户积分表',
|
|
|
]);
|
|
]);
|
|
|
- $table->addColumn('user_id', Column::INTEGER, ['signed' => false, 'comment' => '用户ID'])
|
|
|
|
|
- ->addColumn('point', Column::INTEGER, ['signed' => true, 'default' => 0, 'comment' => '积分'])
|
|
|
|
|
- ->addColumn('freeze_point', Column::INTEGER, ['signed' => true, 'default' => 0, 'comment' => '冻结积分'])
|
|
|
|
|
- ->addTimestamps()
|
|
|
|
|
|
|
+ $table->addColumn('user_id', 'integer', ['signed' => false, 'comment' => '用户ID'])
|
|
|
|
|
+ ->addColumn('point', 'integer', ['signed' => true, 'default' => 0, 'comment' => '积分'])
|
|
|
|
|
+ ->addColumn('freeze_point', 'integer', ['signed' => true, 'default' => 0, 'comment' => '冻结积分'])
|
|
|
|
|
+ ->addTimestamps('create_time', 'update_time')
|
|
|
->create();
|
|
->create();
|
|
|
|
|
|
|
|
|
|
|