2016_08_31_143604_create_links_table.php 656 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateLinksTable extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('links', function (Blueprint $table) {
  14. $table->increments('id');
  15. $table->string('name');
  16. $table->string('url');
  17. $table->smallInteger('sequence');
  18. $table->timestamps();
  19. });
  20. }
  21. /**
  22. * Reverse the migrations.
  23. *
  24. * @return void
  25. */
  26. public function down()
  27. {
  28. Schema::drop('links');
  29. }
  30. }