-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Describe the bug
When trying to create a trigger the migration will always fail.
My attempt:
CREATE TRIGGER update_users_timestamp
AFTER UPDATE ON users
BEGIN
UPDATE users SET updated_at = CURRENT_TIMESTAMP WHERE id = NEW.id;
END;
Error:
ERROR Failed to apply migration ./server/database/migrations/0002_adduserstimestamptrigger.sql
D1_ERROR: incomplete input: SQLITE_ERROR
Steps to reproduce
Steps to reproduce the behavior:
- Create a migration
- Try to create a trigger
- Run the migration
- See error
Expected behavior
Migration is able to handle triggers for SQLite.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested