Skip to content

Commit 1b6c9ea

Browse files
Apply style
1 parent ab3dd99 commit 1b6c9ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

database/migrations/2024_02_29_111020_update_type_column_in_config_table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
use Illuminate\Database\Migrations\Migration;
4-
use Illuminate\Database\Schema\Blueprint;
54
use Illuminate\Support\Facades\DB;
65
use Illuminate\Support\Facades\Schema;
76

@@ -16,8 +15,9 @@ public function up(): void
1615
{
1716
$tableName = config('laravel-config.table');
1817

19-
Schema::table($tableName, function () use($tableName): void {
20-
DB::statement("ALTER TABLE $tableName CHANGE type type varchar(255) DEFAULT 'boolean' NOT NULL"); });
18+
Schema::table($tableName, function () use ($tableName): void {
19+
DB::statement("ALTER TABLE $tableName CHANGE type type varchar(255) DEFAULT 'boolean' NOT NULL");
20+
});
2121
}
2222

2323
/**
@@ -27,7 +27,7 @@ public function down(): void
2727
{
2828
$tableName = config('laravel-config.table');
2929

30-
Schema::table($tableName, function () use($tableName): void {
30+
Schema::table($tableName, function () use ($tableName): void {
3131
DB::statement("ALTER TABLE $tableName CHANGE type type ENUM('boolean','text') DEFAULT 'boolean' NOT NULL ");
3232
});
3333
}

0 commit comments

Comments
 (0)