2018_06_03_095342_create_cruds_table.php 953 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // create_cruds_table
  3. use Illuminate\Support\Facades\Schema;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Database\Migrations\Migration;
  6. class CreateCrudsTable extends Migration
  7. {
  8. /**
  9. * Run the migrations.
  10. *
  11. * @return void
  12. */
  13. public function up()
  14. {
  15. Schema::create('cruds', function (Blueprint $table) {
  16. $table->increments('id'); //индекс
  17. $table->string('title'); //название
  18. $table->string('post'); //описание
  19. $table->date('date'); //дата провидения
  20. $table->string('type'); //тип мероприятия
  21. $table->string('last_modifit'); //последний изменивший
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::dropIfExists('cruds');
  33. }
  34. }