39 lines
938 B
PHP
39 lines
938 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('documents', function (Blueprint $table) {
|
|
$table->boolean('business')->default(0);
|
|
$table->boolean('company')->default(0);
|
|
$table->boolean('all_country')->default(0);
|
|
$table->integer('order')->default(0);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('documents', function (Blueprint $table) {
|
|
$table->dropColumn('business');
|
|
$table->dropColumn('company');
|
|
$table->dropColumn('all_country');
|
|
// $table->dropColumn('order');
|
|
});
|
|
}
|
|
};
|