Skip to content

Commit 359942e

Browse files
committed
update: table
1 parent 32a9200 commit 359942e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

laravel/database/migrations/2019_03_05_202516_alter_api_excel_table.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ class AlterApiExcelTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::table('api_excel', function (Blueprint $table) {
17-
$table->string('auto_delete')->after('state');
16+
Schema::table('api_excel', function(Blueprint $table) {
17+
$table->integer('total_excel', false, true)->default(0)->after('state')->comment('计算任务总行数');
18+
$table->unsignedDecimal('auto_delete', 10, 3)->default(1)->after('state');
1819
$table->softDeletes();
1920
});
2021
}

0 commit comments

Comments
 (0)