refactor: improve performance action DX (#1130)

This commit is contained in:
Kyrch
2026-03-16 21:26:27 -03:00
committed by GitHub
parent 5839dfc4c2
commit a230b803b7
5 changed files with 89 additions and 120 deletions
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
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('performances', function (Blueprint $table) {
$table->index('song_id');
$table->dropUnique('unique_performance');
$table->unique(['song_id', 'artist_type', 'artist_id', 'deleted_at'], 'unique_performance');
$table->dropIndex('performances_song_id_index');
});
}
};