Problem with postgres upgrade

Can’t you add the below to hooks to create the unaccent extension if it’s missing?

after_postgres:
    - exec: su postgres -c 'psql discourse -c "create extension if not exists unaccent;"'