Skip to content

Commit ffa1720

Browse files
claude[bot]ymc9
andcommitted
fix(test): add missing dataType field in issue-2351 regression test
The test was failing on MySQL because the dataType enum field was required but not provided when creating DataText records. MySQL is stricter about enum validation than SQLite, causing 'Data truncated for column' errors. Co-authored-by: Yiming Cao <ymc9@users.noreply.github.com>
1 parent 4a99088 commit ffa1720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/regression/test/issue-2351.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ model DataText extends RoutineData {
6363

6464
const authDb = db.$setAuth({ id: user.id });
6565
const created = await authDb.dataText.create({
66-
data: { textValue: 'hello', routineId: routine.id },
66+
data: { textValue: 'hello', routineId: routine.id, dataType: 'TEXT' },
6767
});
6868
expect(created.textValue).toBe('hello');
6969
expect(created.isDeleted).toBe(false);

0 commit comments

Comments
 (0)