mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 19:49:11 +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 ;
|