feat: integrate Spotify API for syncing music productions with new command and UI components

This commit is contained in:
Ümit Tunç
2026-05-20 22:31:41 +03:00
parent f35632ee0d
commit 751b9339f0
15 changed files with 666 additions and 9 deletions
@@ -0,0 +1,41 @@
<?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('music_productions', function (Blueprint $table) {
$table->string('spotify_album_id')->nullable()->unique()->after('slug');
$table->string('spotify_url')->nullable()->after('spotify_album_id');
$table->string('spotify_cover_url')->nullable()->after('spotify_url');
$table->string('spotify_type')->nullable()->after('spotify_cover_url');
$table->timestamp('spotify_synced_at')->nullable()->after('spotify_type');
$table->index('spotify_album_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('music_productions', function (Blueprint $table) {
$table->dropIndex(['spotify_album_id']);
$table->dropColumn([
'spotify_album_id',
'spotify_url',
'spotify_cover_url',
'spotify_type',
'spotify_synced_at',
]);
});
}
};