<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('songs', function (Blueprint $table): void {
            $table->timestamp('imported_from_ccli_at')->nullable()->after('last_used_at');
            $table->string('ccli_source_url', 500)->nullable()->after('imported_from_ccli_at');
        });
    }

    public function down(): void
    {
        Schema::table('songs', function (Blueprint $table): void {
            $table->dropColumn(['imported_from_ccli_at', 'ccli_source_url']);
        });
    }
};
