Browse Source

cambiando tabla que parea los programas con el target esperado

parent
commit
413c5c86a5

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 View File

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