Hi,
Just use command: select installed_rank from schema_version; check which number is the highest and use one bigger in query.
For example: the biggest number on installed_rank is 32 so your query should looks like this:
INSERT INTO schema_version (installed_rank,version,description,type,script,checksum,installed_by,installed_on,execution_time,success) values (33,'5.7.2017.04.11','DS-3563 Index metadatavalue resource type id column','SQL','V5.7_2017.04.11__DS-3563_Index_metadatavalue_resource_type_id_column.sql',-1,'dspace','2022-12-06 12:32:09.793369',0,true);
INSERT INTO schema_version (installed_rank,version,description,type,script,checksum,installed_by,installed_on,execution_time,success) values (34,'5.7.2017.05.05','DS 3431 Add Policies for BasicWorkflow','JDBC','DS 3431 Add Policies for BasicWorkflow',-1,'dspace','2022-12-06 12:32:09.793369',0,true);