mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 20:49:32 +00:00
add new public repo
This commit is contained in:
38
database/migrations/2023_03_28_083722_create_gits_table.php
Normal file
38
database/migrations/2023_03_28_083722_create_gits_table.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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::create('gits', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->enum('type', ['github', 'gitlab', 'bitbucket', 'custom']);
|
||||
|
||||
$table->string('api_url');
|
||||
$table->string('html_url');
|
||||
|
||||
$table->integer('custom_port')->default(22);
|
||||
$table->string('custom_user')->default('git');
|
||||
|
||||
$table->longText('webhook_secret')->nullable();
|
||||
$table->foreignId('private_key_id')->nullable();
|
||||
$table->foreignId('project_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('gits');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user