mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-25 10:01:01 +03:00
9 lines
158 B
MySQL
9 lines
158 B
MySQL
|
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 ;
|