This commit is contained in:
Andras Bacsai 2023-06-20 20:20:53 +02:00
parent 3bdea4c931
commit 1a9af245c1
2 changed files with 1 additions and 28 deletions

View File

@ -17,6 +17,7 @@ public function up(): void
$table->string('name');
$table->string('description')->nullable();
$table->longText('private_key');
$table->boolean('is_git_related')->default(false);
$table->foreignId('team_id');
$table->timestamps();
});

View File

@ -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('private_keys', function (Blueprint $table) {
$table->boolean('is_git_related')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('private_keys', function (Blueprint $table) {
$table->dropColumn('is_git_related');
});
}
};