Bez popisu

2015_02_27_201953_add_criteria_achieved_percentage_to_activities_table.php 703B

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