Ticket https://fedorahosted.org/389/ticket/47988

Patch: https://fedorahosted.org/389/attachment/ticket/47988/0001-Ticket-47988-Schema-learning-mechanism-in-replicatio.patch

Test case: https://fedorahosted.org/389/attachment/ticket/47988/0001-Ticket-47988-test-case.patch