-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
database/migrations/2020_03_29_180102_switch_tweed_to_tartn.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,46 @@ | ||
<?php | ||
|
||
use Carbon\Carbon; | ||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Support\Facades\DB; | ||
|
||
class SwitchTweedToTartn extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
DB::table('hold') | ||
->where('fix', 'TWEED') | ||
->update( | ||
[ | ||
'fix' => 'TARTN', | ||
'inbound_heading' => 15, | ||
'description' => 'TARTN', | ||
'updated_at' => Carbon::now(), | ||
] | ||
); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
DB::table('hold') | ||
->where('fix', 'TARTN') | ||
->update( | ||
[ | ||
'fix' => 'TWEED', | ||
'inbound_heading' => 196, | ||
'description' => 'TWEED', | ||
'updated_at' => Carbon::now(), | ||
] | ||
); | ||
} | ||
} |