Delimiter //
/**
 * Table des suppressions des relations ENTRIES_MATCHCOD pour l'importation des MATCHINGCODES
 */
Drop Procedure if exists LOADER_CREATE_TABLE_MATCHINGCODES_ENTRIES_TOREMOVE//
Create Procedure LOADER_CREATE_TABLE_MATCHINGCODES_ENTRIES_TOREMOVE ()
Begin

    Drop Table If Exists LOADER_MATCHINGCODES_ENTRIES_TOREMOVE;

    Create Table LOADER_MATCHINGCODES_ENTRIES_TOREMOVE(

        -- champs pour le traitements de l'import
--         LOADER_STATUS_ID_LOADER_STATUS Int Not Null,

--         ID_LOADER_MATCHINGCODES_ENTRIES_TOREMOVE Int Unsigned Not Null Auto_increment,
        ENTRIES_ID_ENTRIES Int Unsigned Not Null,

        -- contraintes et indexes
--         primary key (ID_LOADER_MATCHINGCODES_ENTRIES_TOREMOVE)
        primary key (ENTRIES_ID_ENTRIES)
--         , Index (LOADER_STATUS_ID_LOADER_STATUS)
--         , Index (ID_ENTRIES_MATCHCOD)

    ) ;

End //

Delimiter ;
CALL LOADER_CREATE_TABLE_MATCHINGCODES_ENTRIES_TOREMOVE();