Wrap CREATE EXTENSION in a PL/pgSQL DO block that catches insufficient_privilege so the migration completes successfully even when the DB user is not a superuser.