I have run in to this DB error message during the creation of a Heroku review app:
psql:/priv/repo/structure.sql:25: ERROR: Extensions can only be created on heroku_ext schema
CONTEXT: PL/pgSQL function inline_code_block line 7 at RAISE
This was caused by changes to PostgreSQL extension schema management made by Heroku which are effective since 01 August 2022.
The question is now how to best adjust an Elixir application to comply with the new Heroku rules? In particular when:
- You create extensions in migrations;
- You create extensions in
priv/repo//structure.sqlformix ecto.load; - In your code you use functions from those extensions (e.g.
UNACCENT()).