Geen omschrijving

2017_02_03_150052_add_comments_to_assessments_table.php 587B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. class AddCommentsToAssessmentsTable extends Migration {
  5. /**
  6. * Run the migrations.
  7. *
  8. * @return void
  9. */
  10. public function up()
  11. {
  12. Schema::table('assessments', function(Blueprint $table)
  13. {
  14. $table
  15. ->string('comments')
  16. ->after('percentage')
  17. ->nullable();
  18. });
  19. }
  20. /**
  21. * Reverse the migrations.
  22. *
  23. * @return void
  24. */
  25. public function down()
  26. {
  27. Schema::table('assessments', function(Blueprint $table)
  28. {
  29. $table->dropColumn(array('comments'));
  30. });
  31. }
  32. }