Script for removing a board.

Change-Id: Iad63b5e85fee28330f3f198d09ecb1023ca995cd
This commit is contained in:
Fabio Verboso 2019-05-29 18:52:04 +02:00
parent ca78c705e7
commit 80de852c3b

11
utils/remove_board.sql Normal file
View File

@ -0,0 +1,11 @@
SELECT @BOARD_UUID := '220e9130-2d89-435e-96c1-49f9c88f9a18';
select @BOARD_ID := `id` from boards where uuid= @BOARD_UUID;
delete from locations where board_id=@BOARD_ID;
delete from sessions where board_id=@BOARD_ID;
delete from enabled_webservices where board_uuid=@BOARD_UUID;
delete from exposed_services where board_uuid=@BOARD_UUID;
delete from webservices where board_uuid=@BOARD_UUID;
delete from injection_plugins where board_uuid=@BOARD_UUID;
delete from boards where uuid=@BOARD_UUID;