Files

31 lines
660 B
PHP
Raw Permalink Normal View History

2017-03-31 23:07:19 -04:00
<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
2017-03-31 23:07:19 -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-03-31 23:07:19 -04:00
class AddServerDescriptionColumn extends Migration
{
/**
* Run the migrations.
*/
2024-10-21 19:18:20 -06:00
public function up(): void
2017-03-31 23:07:19 -04:00
{
2026-10-05 18:10:18 -04:00
Schema::table('servers', function (Blueprint $table): void {
2017-03-31 23:07:19 -04:00
$table->text('description')->after('name');
});
}
/**
* Reverse the migrations.
*/
2024-10-21 19:18:20 -06:00
public function down(): void
2017-03-31 23:07:19 -04:00
{
2026-10-05 18:10:18 -04:00
Schema::table('servers', function (Blueprint $table): void {
2017-03-31 23:07:19 -04:00
$table->dropColumn('description');
});
}
}