database/migrations/create_occupations_table.php.stub
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/*
* Cargos
*
* @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('occupations', 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('occupations');
}
};