2017-04-21 17:52:44 -04:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2017-04-21 17:52:44 -04:00
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2026-10-05 18:10:18 -04:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2017-04-21 17:52:44 -04:00
|
|
|
|
|
|
|
|
class AddServiceScriptTrackingToServers extends Migration
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function up(): void
|
2017-04-21 17:52:44 -04:00
|
|
|
{
|
2026-10-05 18:10:18 -04:00
|
|
|
Schema::table('servers', function (Blueprint $table): void {
|
2017-04-21 17:52:44 -04:00
|
|
|
$table->boolean('skip_scripts')->default(false)->after('description');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function down(): void
|
2017-04-21 17:52:44 -04:00
|
|
|
{
|
2026-10-05 18:10:18 -04:00
|
|
|
Schema::table('servers', function (Blueprint $table): void {
|
2017-04-21 17:52:44 -04:00
|
|
|
$table->dropColumn('skip_scripts');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|