Skip to content

Extensions

File location: schema/extensions.yaml (single file)

extensions:
- pgcrypto
- pg_trgm
- uuid-ossp
schema_grants:
- to: app_user
schemas: [public]
FieldTypeRequiredDescription
extensionsstring[]yesExtension names to install
schema_grantsobject[]noGrant USAGE on schemas
schema_grants:
- to: app_user # role name
schemas: [public] # schemas to grant USAGE on
  • Extensions are installed with CREATE EXTENSION IF NOT EXISTS
  • Removing an extension from the list requires --allow-destructive
  • Extensions are installed in phase 2 (before enums and tables)