New migration for #3200

This commit is contained in:
James Cole 2020-07-24 16:40:16 +02:00
parent 758e1ff2ad
commit 74eddfa1fa
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Class ChangesForV540
*/
class ChangesForV540 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::table(
'accounts', static function (Blueprint $table) {
$table->dropColumn('order');
}
);
}
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::table(
'accounts', static function (Blueprint $table) {
$table->integer('order', false, true)->default(0);
}
);
}
}