Relax migration schema a bit

This commit is contained in:
Fedor Indutny
2026-03-16 09:20:17 -07:00
committed by GitHub
parent 17ef1c93cc
commit e024df318e
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import { safeParseUnknown } from '../../util/schemas.std.js';
const toNullable = z
.string()
.or(z.null())
.optional()
.transform(value => value || undefined);

View File

@@ -88,7 +88,7 @@ describe('SQL/updateToSchemaVersion1680', () => {
systemGivenName: '',
systemFamilyName: '',
systemNickname: '',
nicknameGivenName: '',
nicknameGivenName: null,
nicknameFamilyName: '',
username: '',