Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 050dc6f

Browse files
committed
alter cve table to make cve_id a string
1 parent 1e85cde commit 050dc6f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\DB;
4+
use Illuminate\Support\Facades\Schema;
5+
use Illuminate\Database\Schema\Blueprint;
6+
use Illuminate\Database\Migrations\Migration;
7+
8+
class AlterCveTable extends Migration
9+
{
10+
/**
11+
* Run the migrations.
12+
*
13+
* @return void
14+
*/
15+
public function up()
16+
{
17+
DB::statement('ALTER TABLE `vulnerabilities` CHANGE `cve_id` VARCHAR(45);');
18+
}
19+
20+
/**
21+
* Reverse the migrations.
22+
*
23+
* @return void
24+
*/
25+
public function down()
26+
{
27+
DB::statement('ALTER TABLE `vulnerabilities` CHANGE `cve_id` INT(11);');
28+
}
29+
}

0 commit comments

Comments
 (0)