Browse Source

Script for removing a board.

Change-Id: Iad63b5e85fee28330f3f198d09ecb1023ca995cd
changes/40/662040/1
Fabio Verboso 3 years ago
parent
commit
80de852c3b
  1. 11
      utils/remove_board.sql

11
utils/remove_board.sql

@ -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;
Loading…
Cancel
Save