Commenting out trigger related to salts
This commit is contained in:
parent
736cebe036
commit
c4632104a8
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue