fix: database schema

This commit is contained in:
Andras Bacsai committed 2023-09-24 11:56:32 +02:00
1 parent 2dcb7fec05
commit 66bc03b4cd
3 files changed
+5 -3

No files matched your search

@@ -16,7 +16,8 @@ return new class extends Migration
$table->string('uuid')->unique();
$table->string('name');
$table->foreignId('server_id')->nullable();
$table->morphs('destination');
$table->foreignId('environment_id');
$table->timestamps();
});
@@ -12,6 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('services', function (Blueprint $table) {
$table->foreignId('server_id')->nullable();
$table->longText('description')->nullable();
$table->longText('docker_compose_raw');
$table->longText('docker_compose')->nullable();
@@ -25,6 +26,7 @@ return new class extends Migration
public function down(): void
{
Schema::table('services', function (Blueprint $table) {
$table->dropColumn('server_id');
$table->dropColumn('description');
$table->dropColumn('docker_compose_raw');
$table->dropColumn('docker_compose');