2017-04-02 22:51:56 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class DropDeletedAtColumnFromServers extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*/
|
2022-11-25 21:29:04 +01:00
|
|
|
public function up(): void
|
2017-04-02 22:51:56 +02:00
|
|
|
{
|
|
|
|
Schema::table('servers', function (Blueprint $table) {
|
|
|
|
$table->dropColumn('deleted_at');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
2022-11-25 21:29:04 +01:00
|
|
|
public function down(): void
|
2017-04-02 22:51:56 +02:00
|
|
|
{
|
|
|
|
Schema::table('servers', function (Blueprint $table) {
|
|
|
|
$table->timestamp('deleted_at')->nullable();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|