Fixed #24017 -- Add python_2_unicode_compatible in db/migrations

Could you change that to `#24017 - Tests string representation`