소스 검색

cambiando tabla que parea los programas con el target esperado

부모
커밋
413c5c86a5
1개의 변경된 파일3개의 추가작업 그리고 9개의 파일을 삭제
  1. 3
    9
      app/database/migrations/2021_11_12_145021_create_target_outcomes_program_table.php

app/database/migrations/2021_11_12_145021_create_target_outcome_program_table.php → app/database/migrations/2021_11_12_145021_create_target_outcomes_program_table.php 파일 보기

@@ -3,7 +3,7 @@
3 3
 use Illuminate\Database\Schema\Blueprint;
4 4
 use Illuminate\Database\Migrations\Migration;
5 5
 
6
-class CreateTargetOutcomeProgramTable extends Migration {
6
+class CreateTargetOutcomesProgramTable extends Migration {
7 7
 
8 8
 	/**
9 9
 	 * Run the migrations.
@@ -12,18 +12,12 @@ class CreateTargetOutcomeProgramTable extends Migration {
12 12
 	 */
13 13
 	public function up()
14 14
 	{
15
-		Schema::create('target_outcome_program', function (Blueprint $table) {
15
+		Schema::create('target_outcomes_program', function (Blueprint $table) {
16 16
 			$table->increments('id');
17
-			$table->integer('outcome_id')->unsigned();
18 17
 			$table->integer('program_id')->unsigned();
19 18
 			$table->integer('semester_id')->unsigned();
20 19
 			$table->decimal('expected_target', 5, 2)->default('70.00');
21 20
 			$table->timestamps();
22
-			$table->foreign('outcome_id')
23
-				->references('id')
24
-				->on('outcomes')
25
-				->onDelete('cascade')
26
-				->onUpdate('cascade');
27 21
 			$table->foreign('semester_id')
28 22
 				->references('id')
29 23
 				->on('semesters')
@@ -46,7 +40,7 @@ class CreateTargetOutcomeProgramTable extends Migration {
46 40
 	 */
47 41
 	public function down()
48 42
 	{
49
-		Schema::drop('target_outcome_program');
43
+		Schema::drop('target_outcomes_program');
50 44
 	}
51 45
 
52 46
 }