Bläddra i källkod

Edite el migration de create_students_table para anhadir year y degree, y para eliminar add_level_modality_gender_student anhadi directo al create level, modality y gender. Edite create_scales_table para que description fuera text en lgar de varchar255. Anhadi migrations de los views necesarios para overview.

förälder
incheckning
57be296cf6

+ 1
- 1
app/database/migrations/2021_06_01_000529_create_scales_table.php Visa fil

@@ -11,7 +11,7 @@ class CreateScalesTable extends Migration
11 11
 		Schema::create('scales', function (Blueprint $table) {
12 12
 			$table->increments('id');
13 13
 
14
-			$table->string('description');
14
+			$table->text('description');
15 15
 			//$table->integer('min_score')->unsigned();
16 16
 			//$table->integer('max_score')->unsigned();
17 17
 			$table->timestamps();

+ 5
- 0
app/database/migrations/2021_06_02_000647_create_students_table.php Visa fil

@@ -18,10 +18,15 @@ class CreateStudentsTable extends Migration
18 18
 			$table->increments('id');
19 19
 			$table->char('number', 9);
20 20
 			$table->string('name', 100);
21
+			$table->char('gender', 4);
21 22
 			$table->char('school_code', 2)->nullable();
22 23
 			$table->char('conc_code', 4)->nullable();
24
+			$table->char("degree", 3);
25
+			$table->char('level', 3);
26
+			$table->char("year", 3);
23 27
 			$table->string('email', 40)->default('no.email.olas@upr.edu');
24 28
 			$table->integer('program_id')->unsigned()->nullable();
29
+			$table->char("modality", 1);
25 30
 
26 31
 			$table->timestamps();
27 32
 		});

+ 0
- 39
app/database/migrations/2021_08_27_142254_add_level_modality_gender_student.php Visa fil

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