This commit is contained in:
Andras Bacsai committed 2023-05-25 12:00:09 +02:00
1 parent 5a1a33242c
commit f766600fd8
41 files changed
+151 -79

No files matched your search

@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->boolean('is_root_user')->default(false);
$table->string('name')->default('Your Name Here');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('personal_access_tokens', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->morphs('tokenable');
$table->string('name');
$table->string('token', 64)->unique();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('teams', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
$table->boolean('personal_team')->default(false);
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('team_user', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->foreignId('team_id');
$table->foreignId('user_id');
$table->string('role')->nullable();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('instance_settings', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('fqdn')->nullable();
$table->string('wildcard_domain')->nullable();
$table->string('redirect_url')->nullable();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('servers', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
$table->string('description')->nullable();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('server_settings', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->boolean('is_part_of_swarm')->default(false);
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('private_keys', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
$table->string('description')->nullable();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('projects', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
$table->string('description')->nullable();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('project_settings', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('wildcard_domain')->nullable();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('environments', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('name');
$table->foreignId('project_id');
$table->timestamps();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('applications', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->integer('repository_project_id')->nullable();
$table->string('uuid')->unique();
$table->string('name');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('application_settings', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->boolean('is_static')->default(false);
$table->boolean('is_git_submodules_allowed')->default(true);
$table->boolean('is_git_lfs_allowed')->default(true);
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('databases', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('services', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('standalone_dockers', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('name');
$table->string('uuid')->unique();
$table->string('network');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('swarm_dockers', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('name');
$table->string('uuid')->unique();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('kubernetes', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->timestamps();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('gits', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->enum('type', ['github', 'gitlab', 'bitbucket', 'custom']);
$table->string('api_url');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('github_apps', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('gitlab_apps', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('local_persistent_volumes', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->string('name');
$table->string('mount_path');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('environment_variables', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('key');
$table->string('value')->nullable();
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('uuid')->unique();
$table->text('connection');
$table->text('queue');
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('application_deployment_queues', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('application_id');
$table->integer('pull_request_id')->default(0);
$table->schemalessAttributes('metadata');
+2 -1
View File
@@ -14,6 +14,7 @@ use App\Models\StandaloneDocker;
use App\Models\Team;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Storage;
use LocalStorage;
class ProductionSeeder extends Seeder
{
@@ -56,7 +57,7 @@ class ProductionSeeder extends Seeder
// Save SSH Keys for the Coolify Host
$coolify_key_name = "id.root@host.docker.internal";
$coolify_key = Storage::disk('local')->get("ssh-keys/{$coolify_key_name}");
$coolify_key = LocalStorage::ssh_keys()->get("{$coolify_key_name}");
if ($coolify_key) {
$private_key = PrivateKey::find(0);