我在 Laravel 遷移中創建了一個消息表,但它也在創建另一個表create_failed_jobs_table。我沒有創建這個,它是一個新項目。它發生在我創建的每個項目中,它也會自動創建此表,同時還創建另一個表,我不知道我所做的是否創建了它。這是這個文件:create_failed_jobs_table):<?phpuse Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;class CreateFailedJobsTable extends Migration{ /** * Run the migrations. * * @return void */ public function up() { Schema::create('failed_jobs', function (Blueprint $table) { $table->bigIncrements('id'); $table->text('connection'); $table->text('queue'); $table->longText('payload'); $table->longText('exception'); $table->timestamp('failed_at')->useCurrent(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('failed_jobs'); }}創建消息表:)<?phpuse Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;class CreateMessagesTable extends Migration{ /** * Run the migrations. * * @return void */ public function up() { Schema::create('messages', function (Blueprint $table) { $table->bigIncrements('id'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('messages'); }}
- 1 回答
- 0 關注
- 157 瀏覽
添加回答
舉報
0/150
提交
取消