From d6d57f3ad1d348b28d47c983a9851230ac04b651 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Mon, 20 May 2024 16:32:58 -0400 Subject: [PATCH 1/2] Adding updates to schema --- .../2024_05_07_000003_add_two_factor_auth_columns.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/migrations/2024_05_07_000003_add_two_factor_auth_columns.php b/database/migrations/2024_05_07_000003_add_two_factor_auth_columns.php index 867891b..1d4b1be 100644 --- a/database/migrations/2024_05_07_000003_add_two_factor_auth_columns.php +++ b/database/migrations/2024_05_07_000003_add_two_factor_auth_columns.php @@ -13,19 +13,19 @@ public function up(): void { Schema::table('users', function (Blueprint $table) { - if (! $table->hasColumn('two_factor_secret')) { + if (! Schema::hasColumn('users', 'two_factor_secret')) { $table->text('two_factor_secret') ->after('password') ->nullable(); } - if (! $table->hasColumn('two_factor_recovery_codes')) { + if (! Schema::hasColumn('users', 'two_factor_recovery_codes')) { $table->text('two_factor_recovery_codes') ->after('two_factor_secret') ->nullable(); } - if (! $table->hasColumn('two_factor_confirmed_at')) { + if (! Schema::hasColumn('users', 'two_factor_confirmed_at')) { $table->timestamp('two_factor_confirmed_at') ->after('two_factor_recovery_codes') ->nullable(); From eac9c788a4a4e779509e23c6ee761d32e32d2493 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Mon, 20 May 2024 16:41:48 -0400 Subject: [PATCH 2/2] publishing to the migrations --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72855d2..8dd4855 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,6 +50,10 @@ jobs: - name: Publish the DevDojo Configs run: php artisan vendor:publish --tag=auth:config working-directory: ./laravel_app + + - name: Publish the DevDojo Auth Migrations + run: php artisan vendor:publish --tag=auth:migrations + working-directory: ./laravel_app - name: Remove current tests and symlink to DevDojo Auth run: |