diff --git a/database/migrations/task2/2021_11_09_075928_add_surname_to_users_table.php b/database/migrations/task2/2021_11_09_075928_add_surname_to_users_table.php index 5a3422a4..bced772b 100644 --- a/database/migrations/task2/2021_11_09_075928_add_surname_to_users_table.php +++ b/database/migrations/task2/2021_11_09_075928_add_surname_to_users_table.php @@ -14,6 +14,7 @@ class AddSurnameToUsersTable extends Migration public function up() { Schema::table('users', function (Blueprint $table) { + $table->string("surname")->after('name'); // TASK: Add a string field "surname" which would go after the field "name" // Write code here });