birzha-legalizasia/database/migrations/2022_07_14_061004_alter_acc...

34 lines
668 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function (Blueprint $table){
$table->string('type')->nullable();
$table->date('expires_at')->nullable();
$table->morphs('profile');
$table->dropMorphs('accountable');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};