Commenting out trigger related to salts

This commit is contained in:
Imbus 2024-03-13 11:46:17 +01:00
parent 736cebe036
commit c4632104a8

View file

@ -6,10 +6,11 @@ CREATE TABLE salts (
salt TEXT NOT NULL
);
-- Commented out for now, no time for good practices, which is atrocious
-- Create a trigger to automatically generate a salt when inserting a new user record
CREATE TRIGGER generate_salt_trigger
AFTER INSERT ON users
BEGIN
INSERT INTO salts (salt) VALUES (randomblob(16));
UPDATE users SET salt_id = (SELECT last_insert_rowid()) WHERE id = new.id;
END;
-- CREATE TRIGGER generate_salt_trigger
-- AFTER INSERT ON users
-- BEGIN
-- INSERT INTO salts (salt) VALUES (randomblob(16));
-- UPDATE users SET salt_id = (SELECT last_insert_rowid()) WHERE id = new.id;
-- END;