database/migrations/create_duties_table.php.stub
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/*
* Funções comissionadas
*
* @see https://laravel.com/docs/9.x/migrations
* @see https://dev.mysql.com/doc/refman/8.0/en/integer-types.html
*/
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('duties', function (Blueprint $table) {
$table->unsignedBigInteger('id');
$table->string('name', 255);
$table->timestamps();
$table->primary('id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('duties');
}
};