-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a2bb34
commit b98ade0
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
40 changes: 20 additions & 20 deletions
40
database/migrations/2024_12_11_173633_remove_centre_id_from_code_trek_applicants.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
// use Illuminate\Database\Migrations\Migration; | ||
// use Illuminate\Database\Schema\Blueprint; | ||
// use Illuminate\Support\Facades\Schema; | ||
|
||
class RemoveCentreIdFromCodeTrekApplicants extends Migration | ||
{ | ||
// class RemoveCentreIdFromCodeTrekApplicants extends Migration | ||
// { | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('code_trek_applicants', function (Blueprint $table) { | ||
$table->dropForeign(['centre_id']); // Drops the foreign key constraint | ||
$table->dropColumn('centre_id'); // Drops the column | ||
}); | ||
} | ||
// public function up() | ||
// { | ||
// Schema::table('code_trek_applicants', function (Blueprint $table) { | ||
// $table->dropForeign(['centre_id']); // Drops the foreign key constraint | ||
// $table->dropColumn('centre_id'); // Drops the column | ||
// }); | ||
// } | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('code_trek_applicants', function (Blueprint $table) { | ||
$table->unsignedBigInteger('centre_id')->nullable(); | ||
$table->foreign('centre_id')->references('id')->on('office_locations'); | ||
}); | ||
} | ||
} | ||
// public function down() | ||
// { | ||
// Schema::table('code_trek_applicants', function (Blueprint $table) { | ||
// $table->unsignedBigInteger('centre_id')->nullable(); | ||
// $table->foreign('centre_id')->references('id')->on('office_locations'); | ||
// }); | ||
// } | ||
// } |