Merge pull request #1247 from coollabsio/next

v4.0.0-beta.44 - fix schema
This commit is contained in:
Andras Bacsai 2023-09-24 11:58:36 +02:00 committed by GitHub
commit a1d13fc14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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();
}); });

View File

@ -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');