diff --git a/database/migrations/2023_08_08_000000_alter_users_groups_to_longtext.php b/database/migrations/2023_08_08_000000_alter_users_groups_to_longtext.php new file mode 100644 index 0000000..19f40b5 --- /dev/null +++ b/database/migrations/2023_08_08_000000_alter_users_groups_to_longtext.php @@ -0,0 +1,29 @@ +longText('groups')->change(); + $table->longText('groups')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->json('groups')->change(); + }); + } +};