Skip to content

Commit

Permalink
Merge pull request #1673 from solomon-ochepa/patch-38
Browse files Browse the repository at this point in the history
Update drop.stub
  • Loading branch information
dcblogdev authored Oct 30, 2023
2 parents 5729e5d + f60a826 commit bccf2ac
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/Commands/stubs/migration/drop.stub
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
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()
public function up(): void
{
Schema::dropIfExists('$TABLE$');
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
public function down(): void
{
Schema::create('$TABLE$', function (Blueprint $table) {
$table->bigIncrements('id');
$FIELDS$
$table->id();
$FIELDS$
$table->timestamps();
});
}
Expand Down

0 comments on commit bccf2ac

Please sign in to comment.