Closed jroitgrund closed 3 hours ago
Since creating enums uses raw SQL, it doesn't benefit from the migrator schema or the withSchema schema.
This means that CREATE TYPE foo in a migration ends up creating public.foo, even if migratorSchema is set to something else than public.
CREATE TYPE foo
public.foo
Is there a way to access the schema name at migration time?
Hadn't seen db.schema.createType, sorry!
Since creating enums uses raw SQL, it doesn't benefit from the migrator schema or the withSchema schema.
This means that
CREATE TYPE foo
in a migration ends up creatingpublic.foo
, even if migratorSchema is set to something else than public.Is there a way to access the schema name at migration time?