From 72d1c08fbc42bf4de1da7365d4ebf8d30c988d0e Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 10 May 2023 00:21:17 -0700 Subject: [PATCH] Added migration Signed-off-by: snipe --- ..._10_001836_add_google_auth_to_settings.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2023_05_10_001836_add_google_auth_to_settings.php diff --git a/database/migrations/2023_05_10_001836_add_google_auth_to_settings.php b/database/migrations/2023_05_10_001836_add_google_auth_to_settings.php new file mode 100644 index 0000000000..5a2bd6a9fa --- /dev/null +++ b/database/migrations/2023_05_10_001836_add_google_auth_to_settings.php @@ -0,0 +1,39 @@ +boolean('google_login')->nullable()->default(0); + $table->string('google_client_id')->nullable()->default(null); + $table->string('google_client_secret')->nullable()->default(null); + $table->string('google_redirect')->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('settings', function (Blueprint $table) { + $table->dropColumn('google_login'); + $table->dropColumn('google_client_id'); + $table->dropColumn('google_client_secret'); + $table->dropColumn('google_redirect'); + + }); + } +}