私はこのエラーを参照テーブル、SQLSTATE [42S01]:ベーステーブルまたはビューがすでに存在している1050の表 '支払い' は既に(SQLの存在: `テーブルを作成payments`
SQLSTATE [42S01]を移行する場合:ベーステーブルまたはビューがすでに存在している1050表 '支払い' がすでに存在している(SQL:CREATE TABLE
payments
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePaymentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('payments', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->string('resnumber');
$table->string('course_id')->default('vip');
$table->string('price');
$table->boolean('payment')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payments');
}
}
あなたは 'payments'テーブルをすでに持っていますか、すべてのテーブルのスナップショットを共有していますか? – C2486