Feat: Add SSH Key fingerprint to DB
This commit is contained in:
parent
7ac45aa706
commit
7d39a5089c
1 changed files with 22 additions and 0 deletions
|
|
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue