mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
fix: database schema
This commit is contained in:
parent
2dcb7fec05
commit
66bc03b4cd
@ -74,8 +74,7 @@ public function handle(): void
|
|||||||
$containers = format_docker_command_output_to_json($containers);
|
$containers = format_docker_command_output_to_json($containers);
|
||||||
$applications = $this->server->applications();
|
$applications = $this->server->applications();
|
||||||
$databases = $this->server->databases();
|
$databases = $this->server->databases();
|
||||||
// $services = $this->server->services();
|
$services = $this->server->services();
|
||||||
$services = collect([]);
|
|
||||||
$previews = $this->server->previews();
|
$previews = $this->server->previews();
|
||||||
|
|
||||||
/// Check if proxy is running
|
/// Check if proxy is running
|
||||||
|
@ -16,7 +16,8 @@ public function up(): void
|
|||||||
$table->string('uuid')->unique();
|
$table->string('uuid')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
|
|
||||||
$table->foreignId('server_id')->nullable();
|
$table->morphs('destination');
|
||||||
|
|
||||||
$table->foreignId('environment_id');
|
$table->foreignId('environment_id');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::table('services', function (Blueprint $table) {
|
Schema::table('services', function (Blueprint $table) {
|
||||||
|
$table->foreignId('server_id')->nullable();
|
||||||
$table->longText('description')->nullable();
|
$table->longText('description')->nullable();
|
||||||
$table->longText('docker_compose_raw');
|
$table->longText('docker_compose_raw');
|
||||||
$table->longText('docker_compose')->nullable();
|
$table->longText('docker_compose')->nullable();
|
||||||
@ -25,6 +26,7 @@ public function up(): void
|
|||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::table('services', function (Blueprint $table) {
|
Schema::table('services', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('server_id');
|
||||||
$table->dropColumn('description');
|
$table->dropColumn('description');
|
||||||
$table->dropColumn('docker_compose_raw');
|
$table->dropColumn('docker_compose_raw');
|
||||||
$table->dropColumn('docker_compose');
|
$table->dropColumn('docker_compose');
|
||||||
|
Loading…
Reference in New Issue
Block a user