Skip to content

Commit 1e24e97

Browse files
committed
Updated expected triggers.
1 parent 251b1f1 commit 1e24e97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dart/test/utils/migration_fixtures.dart

+4
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ END
415415
SELECT CASE
416416
WHEN (NEW.id IS NULL)
417417
THEN RAISE (FAIL, 'id is required')
418+
WHEN (typeof(NEW.id) != 'text')
419+
THEN RAISE (FAIL, 'id should be text')
418420
END;
419421
INSERT INTO "ps_data__lists"
420422
SELECT NEW.id, json_object('description', NEW."description");
@@ -478,6 +480,8 @@ END
478480
SELECT CASE
479481
WHEN (NEW.id IS NULL)
480482
THEN RAISE (FAIL, 'id is required')
483+
WHEN (typeof(NEW.id) != 'text')
484+
THEN RAISE (FAIL, 'id should be text')
481485
END;
482486
INSERT INTO "ps_data__lists"
483487
SELECT NEW.id, json_object('description', NEW."description");

0 commit comments

Comments
 (0)