Keine Beschreibung

2021_06_22_150108_add_copyright_notes_rubric_criterion.php 926B

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