
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_Location_Link_Temp'
;

CREATE TABLE IF NOT EXISTS parts.DOG_Location_Link_Temp (
	  id_temp INT NOT NULL PRIMARY KEY AUTO_INCREMENT
    , id_link INT
    , id_location_parent INT
    , id_location_child INT
	, active BIT
    , guid BINARY(36)
);
