fixed api issue #23
@ -12,10 +12,14 @@
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::table('sponsors', function (Blueprint $table) {
|
Schema::table('sponsors', function (Blueprint $table) {
|
||||||
$table->string('emirates_id_gender')->nullable()->after('emirates_id_nationality');
|
if (!Schema::hasColumn('sponsors', 'emirates_id_gender')) {
|
||||||
|
$table->string('emirates_id_gender')->nullable()->after('emirates_id_nationality');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Schema::table('employer_profiles', function (Blueprint $table) {
|
Schema::table('employer_profiles', function (Blueprint $table) {
|
||||||
$table->string('emirates_id_gender')->nullable()->after('emirates_id_nationality');
|
if (!Schema::hasColumn('employer_profiles', 'emirates_id_gender')) {
|
||||||
|
$table->string('emirates_id_gender')->nullable()->after('emirates_id_nationality');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,10 +29,14 @@ public function up(): void
|
|||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::table('sponsors', function (Blueprint $table) {
|
Schema::table('sponsors', function (Blueprint $table) {
|
||||||
$table->dropColumn('emirates_id_gender');
|
if (Schema::hasColumn('sponsors', 'emirates_id_gender')) {
|
||||||
|
$table->dropColumn('emirates_id_gender');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Schema::table('employer_profiles', function (Blueprint $table) {
|
Schema::table('employer_profiles', function (Blueprint $table) {
|
||||||
$table->dropColumn('emirates_id_gender');
|
if (Schema::hasColumn('employer_profiles', 'emirates_id_gender')) {
|
||||||
|
$table->dropColumn('emirates_id_gender');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user