No Description

2021_07_06_075249_fix_activities.php 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class FixActivities extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::table('activities', function (Blueprint $table) {
  14. $table->dropColumn(array(
  15. 'criteria_achieved',
  16. 'outcomes_attempted', 'outcomes_achieved',
  17. 'criteria_weights', 'criteria_achieved_percentage',
  18. 'criteria_participant_count', 'criteria_achiever_count'
  19. ));
  20. });
  21. }
  22. /**
  23. * Reverse the migrations.
  24. *
  25. * @return void
  26. */
  27. public function down()
  28. {
  29. Schema::table('activities', function (Blueprint $table) {
  30. $table->text('criteria_achieved')->nullable();
  31. $table->text('criteria_weights')->nullable();
  32. $table->text('outcomes_achieved')->nullable();
  33. $table->text('outcomes_attempted')->nullable();
  34. $table->text('criteria_achieved_percentage')->nullable();
  35. $table->text('criteria_participant_count')->nullable();
  36. $table->text('criteria_achiever_count')->nullable();
  37. });
  38. }
  39. }