Skip to content

makeFieldsOptional

makeFieldsOptional(schema, _fields): string

Defined in: packages/core/src/schema/migrate.ts:54

Returns a copy of the schema string with the given fields made optional. Stub — currently returns schema unchanged; the rewrite is not yet implemented.

string

The schema source string to rewrite.

NeedsMigrationField[]

The fields that should be made optional. Currently unused; placeholder for the not-yet-implemented rewrite.

string

The schema string, unchanged until this is implemented.