From 23c2e0079242c4ce74fcb15a6962485ca4ebdab6 Mon Sep 17 00:00:00 2001 From: Joseph D'Souza Date: Fri, 6 Feb 2026 13:19:00 +0100 Subject: [PATCH] set avatar column nullable for users and social logins tables --- ...026_02_03_123436_make_avatars_nullable.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 server/database/migrations/2026_02_03_123436_make_avatars_nullable.php diff --git a/server/database/migrations/2026_02_03_123436_make_avatars_nullable.php b/server/database/migrations/2026_02_03_123436_make_avatars_nullable.php new file mode 100644 index 0000000..94c30a2 --- /dev/null +++ b/server/database/migrations/2026_02_03_123436_make_avatars_nullable.php @@ -0,0 +1,36 @@ +string('avatar')->nullable()->change(); + }); + + Schema::table('social_logins', function (Blueprint $table) { + $table->string('avatar')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->string('avatar')->nullable(false)->change(); + }); + + Schema::table('social_logins', function (Blueprint $table) { + $table->string('avatar')->nullable(false)->change(); + }); + } +};