Bladeren bron

Migrations fixes

onielm 3 jaren geleden
bovenliggende
commit
ad0fd1aea2

+ 33
- 0
app/database/migrations/2021_01_31_165057_fix_objectives_table_2.php Bestand weergeven

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

+ 31
- 0
app/database/migrations/2021_01_31_171210_fix_criterion_scale.php Bestand weergeven

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