title: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'payments' already exists (SQL: create table `payments`
body: <p>When I migrate a table I see this error,</p>
  
  <blockquote>
    <p>SQLSTATE[42S01]: Base table or view already exists: 1050 Table
    'payments' already exists (SQL: create table <code>payments</code></p>
  </blockquote>
  
  <pre><code>&lt;?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-&gt;increments('id');
              $table-&gt;integer('user_id')-&gt;unsigned();
              $table-&gt;foreign('user_id')-&gt;references('id')-&gt;on('users')-&gt;onDelete('cascade');
              $table-&gt;string('resnumber');
              $table-&gt;string('course_id')-&gt;default('vip');
              $table-&gt;string('price');
              $table-&gt;boolean('payment')-&gt;default(false);
              $table-&gt;timestamps();
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::dropIfExists('payments');
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/OrZvl.png" rel="noreferrer">Error</a></p>