Fixed #24017 -- Add python_2_unicode_compatible in db/migrations

I think we can omit this assertion.