在heroku postgresql上自动为审阅应用程序启用uuid ossp

在heroku postgresql上自动为审阅应用程序启用uuid ossp,postgresql,heroku,heroku-review-app,Postgresql,Heroku,Heroku Review App,我有一个heroku review应用程序,它可以在每次github请求时部署 { "name": "app_name", "description": "", "stack": "container", "repository": "https://github.com/my_org/my_app.git", "buildpack": "heroku/php", "image": "php:7.2.11-fpm", "addons": [ { "

我有一个heroku review应用程序,它可以在每次github请求时部署

{
  "name": "app_name",
  "description": "",
  "stack": "container",
  "repository": "https://github.com/my_org/my_app.git",
  "buildpack": "heroku/php",
  "image": "php:7.2.11-fpm",
  "addons": [
    {
      "plan": "heroku-redis:hobby-dev",
      "as": "CACHE"
    },
    {
      "plan": "heroku-postgresql:hobby-dev",
      "as": "DATABASE"
    },
    {
      "plan": "scheduler:standard",
      "as": "SCHEDULER"
    }
  ]
}

为了在postgres上启用uuid ossp,我必须在每次构建之后执行它

heroku pg:psql --app app_name_here
CREATE EXTENSION "uuid-ossp";
当我的审查应用程序启动时,如何使其自动可用?有没有地方我可以在开始时注入脚本以便postgres执行它