refactor(form-builder): pre-publish check reads form_field_bindings; drop binding JSON columns

This commit is contained in:
2026-04-24 20:09:27 +02:00
parent 6933e6d700
commit 61719bf8bf
18 changed files with 375 additions and 97 deletions

View File

@@ -99,7 +99,7 @@ final class FormBuilderDevSeeder
'is_required' => $field['is_required'] ?? false,
'is_filterable' => $field['is_filterable'] ?? false,
'is_pii' => $field['is_pii'] ?? false,
'binding' => null,
'binding' => null, // Pattern B — snapshot embeds null for form-owned fields.
'conditional_logic' => null,
'translations' => null,
'value_storage_hint' => $field['type']->recommendedValueStorageHint()->value,
@@ -372,7 +372,6 @@ final class FormBuilderDevSeeder
'is_admin_only' => false,
'is_pii' => false,
'display_width' => $def['display_width'] ?? 'full',
'binding' => null,
'role_restrictions' => null,
'value_storage_hint' => $def['value_storage_hint'] ?? FormValueStorageHint::JSON,
'sort_order' => $sortOrder + 1,