Skip to content

Commit bcf31a1

Browse files
rootroot
authored andcommitted
Fix missing icons for existing records
1 parent 68faf8a commit bcf31a1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class AddKeyTypeToExistingKeys extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
DB::update("UPDATE `keys`
17+
SET key_type_id = '1'
18+
WHERE key_type_id is null
19+
");
20+
}
21+
22+
/**
23+
* Reverse the migrations.
24+
*
25+
* @return void
26+
*/
27+
public function down()
28+
{
29+
}
30+
}

0 commit comments

Comments
 (0)