
USE parts;

SELECT CONCAT('WARNING: Table ', TABLE_SCHEMA, '.', TABLE_NAME, ' already exists.') AS msg_warning 
FROM INFORMATION_SCHEMA.TABLES 
WHERE 
        TABLE_SCHEMA = 'parts' 
    AND TABLE_NAME = 'DOG_Command_Temp'
;

CREATE TABLE IF NOT EXISTS parts.DOG_Command_Temp (
	  id_temp INT NOT NULL PRIMARY KEY AUTO_INCREMENT
	, id_command INT
	, id_command_category INT
	, name VARCHAR(250)
	, hand_signal_default_description TEXT
    , can_have_button BIT
	, notes TEXT
	, active BIT
    , guid BINARY(36)
    , does_meet_id_filters BIT
    , does_meet_non_id_filters BIT

    , name_command_category VARCHAR(250)
);
