Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

refactor(auth): merge the passkey migrations into one

Aditya Tripathi12ffea0ab246
diff --git a/database/migrations/2026_10_12_164601_create_passkeys_table.php b/database/migrations/2026_10_12_164601_create_passkeys_table.php
index cb884c3988..97d6bf59b1 100644
--- a/database/migrations/2026_10_12_164601_create_passkeys_table.php
+++ b/database/migrations/2026_10_12_164601_create_passkeys_table.php
@@ -22,6 +22,10 @@ return new class extends Migration
$table->index('user_id');
});
+
+ Schema::table('instance_settings', function (Blueprint $table) {
+ $table->boolean('is_passkey_enabled')->default(true);
+ });
}
/**
@@ -29,6 +33,10 @@ return new class extends Migration
*/
public function down(): void
{
+ Schema::table('instance_settings', function (Blueprint $table) {
+ $table->dropColumn('is_passkey_enabled');
+ });
+
Schema::dropIfExists('passkeys');
}
};
diff --git a/database/migrations/2026_10_12_164603_add_is_passkey_enabled_to_instance_settings_table.php b/database/migrations/2026_10_12_164603_add_is_passkey_enabled_to_instance_settings_table.php
deleted file mode 100644
index 674486416d..0000000000
--- a/database/migrations/2026_10_12_164603_add_is_passkey_enabled_to_instance_settings_table.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::table('instance_settings', function (Blueprint $table) {
- $table->boolean('is_passkey_enabled')->default(true);
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::table('instance_settings', function (Blueprint $table) {
- $table->dropColumn('is_passkey_enabled');
- });
- }
-};