Skip to content

Commit

Permalink
Remove hanging column
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo committed May 23, 2024
1 parent d3b52fe commit ab27d43
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions migrations/2024_05_23_000001_extensions_remove_codesign.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Support\Facades\Schema;

class ExtensionsRemoveCodesign extends Migration
{
private $tableName = 'extensions';

public function up()
{
$capsule = new Capsule();
if ($capsule::schema()->hasColumn($this->tableName, 'codesign')){
$capsule::schema()->table($this->tableName, function (Blueprint $table) {
$table->dropColumn('codesign');
});
}
}

public function down()
{
// No going back
}
}

0 comments on commit ab27d43

Please sign in to comment.