2020_06_23_123000_create_pages_table.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreatePagesTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('pages', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('title');
  17. $table->string('text_short')->nullable();
  18. $table->text('text')->nullable();
  19. $table->string('slug')->nullable();
  20. $table->string('image')->nullable();
  21. $table->boolean('online');
  22. $table->string('web')->nullable();
  23. $table->string('email')->nullable();
  24. $table->string('facebook')->nullable();
  25. $table->string('instagram')->nullable();
  26. $table->string('twitter')->nullable();
  27. $table->string('youtube')->nullable();
  28. $table->timestamps();
  29. });
  30. }
  31. /**
  32. * Reverse the migrations.
  33. *
  34. * @return void
  35. */
  36. public function down()
  37. {
  38. Schema::dropIfExists('pages');
  39. }
  40. }