add is_allowed to seed box records

This commit is contained in:
xiaomlove
2023-01-31 18:23:20 +08:00
parent 9c0f458920
commit a3793f4b46
7 changed files with 65 additions and 4 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('seed_box_records', function (Blueprint $table) {
$table->integer('is_allowed')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('seed_box_records', function (Blueprint $table) {
$table->dropColumn(['is_allowed']);
});
}
};