Safe way to update database from v13 to v15

Dear All
I want a Safe way to update the database from v13 to v15 while keeping all permission
my server ubuntu 22.04 python 3.8