salix/db/routines/srt/procedures/restart.sql

16 lines
303 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`restart`()
BEGIN
/*
* Se ha pulsado el botón RESTART en la pantalla tàctil del sorter
*/
DELETE FROM srt.moving
WHERE bufferFromFk = 0;
INSERT INTO srt.sorterLog(`action`) VALUES('RESTART');
END$$
DELIMITER ;