Created
April 2, 2020 13:19
-
-
Save bkintanar/6613c21965b732ffd3225e36e7e76980 to your computer and use it in GitHub Desktop.
2020_03_16_093453_create_employee_fields_table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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