Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bkintanar/6613c21965b732ffd3225e36e7e76980 to your computer and use it in GitHub Desktop.
Save bkintanar/6613c21965b732ffd3225e36e7e76980 to your computer and use it in GitHub Desktop.
2020_03_16_093453_create_employee_fields_table
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEmployeeFieldsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('employee_fields', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('sort_order')->nullable()->default(null);
$table->string('class')->nullable();
$table->string('name')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('employee_fields');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment