From 4e755871a264247548b27e60598439da0cef882c Mon Sep 17 00:00:00 2001 From: NishithaAddagatla Date: Tue, 27 Feb 2018 13:42:28 -0800 Subject: [PATCH] Added table column gpa Initially i added a gpa column manually in php admin because when i was migrating the seed i was getting an error, saying there are values for gpa but no column in the table. Otherwise this an another way to add a column to the table during migration of the database. --- database/migrations/2015_04_30_222953_add_student_table.php | 1 + 1 file changed, 1 insertion(+) diff --git a/database/migrations/2015_04_30_222953_add_student_table.php b/database/migrations/2015_04_30_222953_add_student_table.php index adbf821..fe6b8c7 100644 --- a/database/migrations/2015_04_30_222953_add_student_table.php +++ b/database/migrations/2015_04_30_222953_add_student_table.php @@ -19,6 +19,7 @@ public function up() $table->string('last_name'); $table->string('student_id'); $table->date('dob'); + $table->decimal('gpa', 5, 2); $table->timestamps(); }); }