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

35 lines
734 B
PHP
Raw 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::create('documentgroups', function (Blueprint $table) {
$table->id();
2022-08-02 12:31:56 +00:00
$table->text('name')->nullable();
$table->text('description')->nullable();
$table->string('type')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('documentgroups');
}
};