2016_04_06_181000_add_position_to_sentence.php 587 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class AddPositionToSentence extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::table('sentences', function ($table) {
  14. $table->boolean('position');
  15. });
  16. }
  17. /**
  18. * Reverse the migrations.
  19. *
  20. * @return void
  21. */
  22. public function down()
  23. {
  24. Schema::table('sentences', function ($table) {
  25. $table->dropColumn('position');
  26. });
  27. }
  28. }