Make Export not nullable
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-06-30 18:10:53 +02:00
parent bbd3237330
commit c78c1cfee7
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,12 @@ return new class extends Migration
Schema::table('forms', function (Blueprint $table) { Schema::table('forms', function (Blueprint $table) {
$table->json('export')->after('config')->nullable(); $table->json('export')->after('config')->nullable();
}); });
DB::table('forms')->update([
'export' => json_encode(['root' => null, 'group_by' => null, 'to_group_field' => null])
]);
Schema::table('forms', function (Blueprint $table) {
$table->json('export')->nullable(false)->change();
});
} }
/** /**

View File

@ -48,6 +48,7 @@ class FormRequest extends RequestFactory
'mail_bottom' => EditorRequestFactory::new()->create(), 'mail_bottom' => EditorRequestFactory::new()->create(),
'header_image' => $this->getHeaderImagePayload(str()->uuid() . '.jpg'), 'header_image' => $this->getHeaderImagePayload(str()->uuid() . '.jpg'),
'mailattachments' => [], 'mailattachments' => [],
'export' => ExportData::from([])->toArray(),
]; ];
} }