From 846c2ec5e6ab09942e4c9b114c353ec80ec5c333 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Escobar Date: Fri, 29 Nov 2024 15:55:12 -0300 Subject: [PATCH] =?UTF-8?q?Alter=20table=20na=20tabela=20users=20j=C3=A1?= =?UTF-8?q?=20existente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024_11_29_185241_add_new_fields.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 database/migrations/2024_11_29_185241_add_new_fields.php diff --git a/database/migrations/2024_11_29_185241_add_new_fields.php b/database/migrations/2024_11_29_185241_add_new_fields.php new file mode 100644 index 0000000..ca1490b --- /dev/null +++ b/database/migrations/2024_11_29_185241_add_new_fields.php @@ -0,0 +1,31 @@ +string('city', 60)->nullable(); + $table->string('state', 20)->nullable(); + $table->string('linkedin', 101)->nullable()->unique(); + $table->string('discord', 33)->nullable()->unique(); + }); + } + + /** + * Reverse the migrations. + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['city', 'state', 'linkedin', 'discord']); + }); + } +};