feat(migrate): template migrations

This commit is contained in:
Lewis Wynne 2026-03-23 20:33:18 +00:00
parent abe0755abc
commit a4f8c651a4
6 changed files with 224 additions and 3 deletions

View file

@ -63,7 +63,8 @@ function parseOptions(field: any): SelectOption[] {
function parseField(raw: any): FieldDef {
const base = {
label: raw['@_label'],
...(raw['@_required'] === 'true' && { required: true })
...(raw['@_required'] === 'true' && { required: true }),
...(raw['@_from'] && { from: raw['@_from'] })
};
const type = raw['@_type'];