Make Export not nullable
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
bbd3237330
commit
c78c1cfee7
|
@ -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();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue