Fixed #23030 -- Properly handled geometry columns metadata during migrations