Bug #3006: fix wrong uid column set in migrators

(cherry picked from commit 33c84d630b9daef999ca384d1a1ff6bd2ddb1912)