Fixed #24017 -- Add python_2_unicode_compatible in db/migrations