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

39 lines
936 B
PHP
Raw Permalink Normal View History

<?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);
2022-09-26 11:05:01 +00:00
$table->boolean('all_country')->default(0);
2022-09-26 11:26:51 +00:00
$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');
2022-09-26 11:26:51 +00:00
$table->dropColumn('all_country');
2022-09-29 08:41:36 +00:00
$table->dropColumn('order');
});
}
};