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