From 19cf170dd99fdc3dfc8c78c2cbf3253f36bca741 Mon Sep 17 00:00:00 2001 From: akemidx Date: Tue, 24 Jan 2023 15:30:21 -0500 Subject: [PATCH] Add VIP Checkbox --- .../2023_01_23_232933_add_vip_to_users.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2023_01_23_232933_add_vip_to_users.php diff --git a/database/migrations/2023_01_23_232933_add_vip_to_users.php b/database/migrations/2023_01_23_232933_add_vip_to_users.php new file mode 100644 index 0000000000..40db001b17 --- /dev/null +++ b/database/migrations/2023_01_23_232933_add_vip_to_users.php @@ -0,0 +1,34 @@ +boolean('vipuser')->nullable()->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + if (Schema::hasColumn('users', 'vipuser')) { + $table->dropColumn('vipuser'); + } + }); + } +}