Hey, I'm trying to create a trigger on my D1 Database. Applying the query directly with sqlite works

Hey, I'm trying to create a trigger on my D1 Database. Applying the query directly with sqlite works, but when done with
execute
or with migrations, it outputs this:

 [ERROR] incomplete input


This is the trigger:

CREATE TRIGGER delete_item_tags
    AFTER DELETE ON list_item
begin
    DELETE FROM list_item_tags
    WHERE item_id = OLD.id;
END;
Was this page helpful?