Skip to content

Commit

Permalink
fix styleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Maynne authored and Johnny Maynne committed Dec 7, 2023
1 parent 4b4b36a commit ebc48bd
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table(config('laravel-attributes.tables.name', 'attributes'), function(Blueprint $table) {
$table->renameColumn('attributable', 'attributable_type');
$this->index(["attributable_type", "attributable_id"]);
$this->index(['attributable_type', 'attributable_id']);
});
}

Expand All @@ -24,7 +23,7 @@ public function down(): void
{
Schema::table(config('laravel-attributes.tables.name', 'attributes'), function(Blueprint $table) {
$table->renameColumn('attributable_type', 'attributable');
$this->index(["attributable_type", "attributable_id"]);
$this->index(['attributable_type', 'attributable_id']);
});
}
};

0 comments on commit ebc48bd

Please sign in to comment.