2018_04_05_054404_create_employee_educations_table.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateEmployeeEducationsTable extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. if (!Schema::hasTable('employee_educations')){
  14. Schema::create('employee_educations', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('edu_level_id');
  17. $table->string('institute_name',255);
  18. $table->string('major',255);
  19. $table->string('passing_year',255);
  20. $table->string('marks',255);
  21. $table->string('duration',255)->nullable();
  22. $table->tinyInteger('added_by')->nullable();
  23. $table->tinyInteger('updated_by')->nullable();
  24. $table->tinyInteger('status')->nullable();
  25. $table->tinyInteger('approved_by')->nullable();
  26. $table->softDeletes();
  27. $table->timestamps();
  28. });
  29. }
  30. }
  31. /**
  32. * Reverse the migrations.
  33. *
  34. * @return void
  35. */
  36. public function down()
  37. {
  38. Schema::drop('employee_educations');
  39. }
  40. }