From f7f82f0d209f082ffc09696d54fcf492f799805e Mon Sep 17 00:00:00 2001 From: Matt Young Date: Tue, 28 May 2024 11:22:55 -0500 Subject: [PATCH] Add admin flags to users table --- ...add_is_admin_and_is_tab_to_users_table.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2024_05_28_160214_add_is_admin_and_is_tab_to_users_table.php diff --git a/database/migrations/2024_05_28_160214_add_is_admin_and_is_tab_to_users_table.php b/database/migrations/2024_05_28_160214_add_is_admin_and_is_tab_to_users_table.php new file mode 100644 index 0000000..ee55507 --- /dev/null +++ b/database/migrations/2024_05_28_160214_add_is_admin_and_is_tab_to_users_table.php @@ -0,0 +1,30 @@ +boolean('is_admin')->default('0'); + $table->boolean('is_tab')->default('0'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('is_admin'); + $table->dropColumn('is_tab'); + }); + } +};