Pterodactyl-Panel/database/migrations/2020_04_17_203438_allow_nullable_descriptions.php
Dane Everitt 2ed3763d21
cs fix
2020-06-28 15:43:44 -07:00

57 lines
1.5 KiB
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AllowNullableDescriptions extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('eggs', function (Blueprint $table) {
$table->text('description')->nullable()->change();
});
Schema::table('nests', function (Blueprint $table) {
$table->text('description')->nullable()->change();
});
Schema::table('nodes', function (Blueprint $table) {
$table->text('description')->nullable()->change();
});
Schema::table('locations', function (Blueprint $table) {
$table->text('long')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('eggs', function (Blueprint $table) {
$table->text('description')->nullable(false)->change();
});
Schema::table('nests', function (Blueprint $table) {
$table->text('description')->nullable(false)->change();
});
Schema::table('nodes', function (Blueprint $table) {
$table->text('description')->nullable(false)->change();
});
Schema::table('locations', function (Blueprint $table) {
$table->text('long')->nullable(false)->change();
});
}
}