-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Sources to ACARS Entries (#1905)
* Add Sources to ACARS Entries * Made changes based on feedback from Dispo * Updated AcarsController to add API route to show supported sources and their ID * Style fixes * One more fix * Fixes based on suggestions by nabeel. * Rollback file * Revert Changes * Delete app/Models/AcarsSource.php * fix charset * StyleCI fix * switch colaltion to charset
- Loading branch information
1 parent
a696cd1
commit 8dcc970
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
app/Database/migrations/2024_12_03_093851_add_sources_to_acars_table.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?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('acars', function (Blueprint $table) { | ||
$table->string('source', 5)->charset('latin1')->nullable(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::table('acars', function (Blueprint $table) { | ||
$table->dropColumn('source'); | ||
}); | ||
} | ||
}; |
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
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