Open Brianelvio opened 2 weeks ago
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:
Expected behavior Migration is able to handle triggers for SQLite.
Could you try to put all your statement in one line?
Describe the bug When trying to create a trigger the migration will always fail.
My attempt:
Error:
Steps to reproduce Steps to reproduce the behavior:
Expected behavior Migration is able to handle triggers for SQLite.