From 6ba576ae7c97c68d2238a2c86a4a384b7cca3c4f Mon Sep 17 00:00:00 2001 From: hmdee <32852463+hmdee@users.noreply.github.com> Date: Fri, 8 Nov 2024 00:03:16 +0200 Subject: [PATCH] Update 2021_11_09_075928_add_surname_to_users_table.php --- .../task2/2021_11_09_075928_add_surname_to_users_table.php | 1 + 1 file changed, 1 insertion(+) 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 });