Mattermost needs to be upgraded from docker mattermost/mattermost-prod-app:v5.31.7 to mattermost/mattermost-team-edition:6.0

Mattermost docker image needs to be upgraded from docker mattermost/mattermost-prod-app:v5.31.7 to mattermost/mattermost-team-edition:6.0, when i migrated then i created a new database and i have done pg_restore and it was successfull, but the channels and old data didn’t get loaded in the new mattermost, can i get help on this like how to migrate successfully from prod-appv5.31.7 to mattermost-team-edition:6.0