Elastic Search Issue after Temporal Upgrade

Hi Team,

We are using Postgres database for temporal and took the backup of database and upgraded from 1.20.1 to 1.22.1 and missed updating the SQL driver to postgres12.

Restored the database and upgraded it again, however when a schedule is created it is not showing in schedules page however it is listing in workflows.

We have not taken the backup of ES and how to address this issue ?

Tried running the script /etc/temporal/schema/elasticsearch/visibility/versioned/v5/upgrade.sh - but no luck.