CREATE DEFINER=`jhise`@`localhost` PROCEDURE `project_remove_document`(in i_project_access_key char(32), in i_document_access_key char(32))
BEGIN
	declare l_project_id int;

    select id into l_project_id from project where access_key = i_project_access_key;

	delete from project_document_jct where project_id = l_project_id and document_access_key = i_document_access_key;
END
