SQL query to change attribute position in wp_postmeta table?

Have a tricky situation and didn’t found any other ways of solving that yet.
Trouble is – I have attributes and values in postmeta, but those attributes are in wrong places (Attributes, not attribute values). To change positions in manual way – could take ages for me. While checked postmeta table contents – I see there’s a definition of attribute position.

Question: How should query look like in SQL to find attribute by inserted name and change his position?

Partial content of the table:

s:38:"pa_attribute-name";a:6:{s:4:"name";s:38:"pa_attribute-name";s:5:"value";s:0:"";s:8:"position";i:1;s:10:"is_visible";i:0;s:12:"is_variation";i:0;s:11:"is_taxonomy";i:1;}

Is that possible at all to change it without changing/breaking/touching any other information in table?

Any ideas appreciated!