feat: integrate Spotify API for syncing music productions with new command and UI components
This commit is contained in:
+41
@@ -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',
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user