1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateEducationLevelsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- if (!Schema::hasTable('education_levels')){
- Schema::create('education_levels', function (Blueprint $table) {
- $table->increments('id');
- $table->string('level_name',255);
- $table->tinyInteger('added_by')->nullable();
- $table->tinyInteger('updated_by')->nullable();
- $table->tinyInteger('status')->nullable();
- $table->tinyInteger('approved_by')->nullable();
- $table->softDeletes();
- $table->timestamps();
- });
- }
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('education_levels');
- }
- }
|