Skip to content

Commit

Permalink
Fix #107: Replace TWEED With TARTN (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF authored Mar 30, 2020
1 parent 00e317a commit 43f398f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions database/migrations/2020_03_29_180102_switch_tweed_to_tartn.php
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(),
]
);
}
}

0 comments on commit 43f398f

Please sign in to comment.