Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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('world_heritage_sites', function (Blueprint $table) {
$table->dropColumn('image_url');
});
Comment on lines +14 to +16
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping world_heritage_sites.image_url will break any seed/test code that still inserts or upserts an image_url field into world_heritage_sites (e.g., src/database/seeders/WorldHeritageSeeder.php and multiple query service tests). Please remove/replace those writes before merging, otherwise running migrations + seeders/tests will fail with an unknown column error.

Copilot uses AI. Check for mistakes.
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('world_heritage_sites', function (Blueprint $table) {
$table->string('image_url')->nullable()->after('short_description');
});
}
};
Loading