Relax migration schema a bit

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-16 12:05:33 -05:00
committed by GitHub
parent 30bfd6933a
commit 279a69f3b3
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: '',