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