Feature Request. Add schema exposure to config.toml

[api]
schemas = ["public", "governance", "pages", "schema_harbor", "portal"]
# Grant permissions for the listed schemas

[realtime]
enabled = true
schemas = ["public", "governance", "pages", "schema_harbor", "portal"]
# Allow change events on the listed schemas
[api]
schemas = ["public", "governance", "pages", "schema_harbor", "portal"]
# Grant permissions for the listed schemas

[realtime]
enabled = true
schemas = ["public", "governance", "pages", "schema_harbor", "portal"]
# Allow change events on the listed schemas
Thanks
8 Replies
whaley
whaleyOP2w ago
Ik we can do this with a migration, toml would feel better tho imo, there's already some precedent there in the toml
garyaustin
garyaustin2w ago
https://supabase.com/docs/guides/local-development/cli/config#api.schemas The api schema setting is there. I don't know what your are showing with realtime schemas. But if you have feature requests they need to be on github supabase/discussions or the appropriate repository. Supabase does not read posts here regularly.
whaley
whaleyOP2w ago
there's no array for realtime schemas though, the schema array doesn't expose that permission when reatlime is enabled, though it should imo -- unless im doing something totally wrong
silentworks
silentworks2w ago
I've never seen a separate area in the hosted dashboard to expose realtime schemas. There is only one place to expose a schema and it's under the API settings.
garyaustin
garyaustin2w ago
I don't know what realtime schema option would be. You add tables to the realtime publication.
silentworks
silentworks2w ago
If you mean realtime publication, you enable those on tables via SQL in the CLI setup.
garyaustin
garyaustin2w ago
ALTER PUBLICATION supabase_realtime ADD TABLE your_table_name;
silentworks
silentworks2w ago
You beat me to it.

Did you find this page helpful?