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,10 +8,12 @@ ...@@ -8,10 +8,12 @@
{ {
public function up(): void public function up(): void
{ {
if (!Schema::hasColumn('people', 'governorate')) {
Schema::table('people', function (Blueprint $table) { Schema::table('people', function (Blueprint $table) {
$table->string('governorate', 100)->nullable()->after('national_id'); $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