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.

Feat: Add SSH Key fingerprint to DB

peaklabs-dev7d39a5089c18
diff --git a/database/migrations/2024_09_16_094127_add_ssh_key_fingerprint_to_private_keys_table.php b/database/migrations/2024_09_16_094127_add_ssh_key_fingerprint_to_private_keys_table.php
new file mode 100644
index 0000000000..f64bb32c9c
--- /dev/null
+++ b/database/migrations/2024_09_16_094127_add_ssh_key_fingerprint_to_private_keys_table.php
@@ -0,0 +1,22 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddSshKeyFingerprintToPrivateKeysTable extends Migration
+{
+ public function up()
+ {
+ Schema::table('private_keys', function (Blueprint $table) {
+ $table->string('fingerprint')->nullable()->unique()->after('private_key');
+ });
+ }
+
+ public function down()
+ {
+ Schema::table('private_keys', function (Blueprint $table) {
+ $table->dropColumn('fingerprint');
+ });
+ }
+}