Skip to content

Commit

Permalink
Add migration to remove unused columns
Browse files Browse the repository at this point in the history
  • Loading branch information
SniperSister committed Nov 17, 2024
1 parent b87414d commit 69dac9f
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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.
*/
public function up(): void
{
Schema::table('sites', function (Blueprint $table) {
$table->dropColumn('update_patch');
$table->dropColumn('update_minor');
$table->dropColumn('update_major');
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('sites', function (Blueprint $table) {
$table->boolean('update_patch');
$table->boolean('update_minor');
$table->boolean('update_major');
});
}
};

0 comments on commit 69dac9f

Please sign in to comment.