A free open source IT asset/license management system
Added migration
snipe72d1c08fbc42
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.phpnew file mode 100644index 0000000000..5a2bd6a9fa--- /dev/null+++ b/database/migrations/2023_05_10_001836_add_google_auth_to_settings.php@@ -0,0 +1,39 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++class AddGoogleAuthToSettings extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('settings', function (Blueprint $table) {+ $table->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');++ });+ }+}