Commit cf73fb82 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix governorate migration: skip if column already exists

Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent 0504e7d1
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
{ {
public function up(): void public function up(): void
{ {
Schema::table('people', function (Blueprint $table) { if (!Schema::hasColumn('people', 'governorate')) {
$table->string('governorate', 100)->nullable()->after('national_id'); Schema::table('people', function (Blueprint $table) {
}); $table->string('governorate', 100)->nullable()->after('national_id');
});
}
} }
public function down(): void public function down(): void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment