mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 17:11:39 +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 ;
|