Skip to content

Commit

Permalink
Fix missing icons for existing records
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Nov 6, 2019
1 parent 68faf8a commit bcf31a1
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddKeyTypeToExistingKeys extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::update("UPDATE `keys`
SET key_type_id = '1'
WHERE key_type_id is null
");
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}

0 comments on commit bcf31a1

Please sign in to comment.