Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
fix is_os migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Aug 3, 2021
1 parent ba37a55 commit 16aaa04
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddTargetOs extends Migration
class AddTargetIsOs extends Migration
{
/**
* Run the migrations.
Expand All @@ -14,7 +14,7 @@ class AddTargetOs extends Migration
public function up()
{
$create_sql[] = <<<SQL
ALTER TABLE public.k_target_trivy ADD COLUMN IF NOT EXISTS isOS boolean
ALTER TABLE public.k_target_trivy ADD COLUMN IF NOT EXISTS is_os boolean
SQL;
foreach ($create_sql as $sql ) {
DB::statement($sql);
Expand All @@ -29,7 +29,7 @@ public function up()
public function down()
{
$create_sql[] = <<<SQL
ALTER TABLE public.k_target_trivy DROP COLUMN isOS;
ALTER TABLE public.k_target_trivy DROP COLUMN is_os;
SQL;

foreach ($create_sql as $sql ) {
Expand Down

0 comments on commit 16aaa04

Please sign in to comment.