mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-25 18:11:02 +03:00
8 lines
158 B
SQL
8 lines
158 B
SQL
DELIMITER //
|
|
CREATE TRIGGER setUUID BEFORE INSERT ON users
|
|
FOR EACH ROW BEGIN
|
|
IF NEW.uuid IS NULL THEN
|
|
SET NEW.uuid = UUID();
|
|
END IF;
|
|
END; //
|
|
DELIMITER ;
|