7
Allow Customization of /migrations Directory in config.toml for Supabase Migrations and Shadow Database
Source: supabase/supabase#33257 · opened by @redegade
Feature Request Summary Currently, Supabase enforces the /migrations directory as the fixed location for storing SQL schema migration files. This setting is not configurable, and developers cannot change it in config.toml. Additionally, the shadow database—created when running supabase db diff—also strictly uses the /migrations directory, without an option to customize its location. Problem Statement Many development teams have unique project structures and workflows that require flexibility in where migration files are stored. Being forced to use /migrations can cause conflicts in monorepos, CI/CD pipelines, and certain deployment setups. Proposed Solution Introduce an option in config.toml—likely under the [db] section—to allow developers to specify a custom directory for migration files. Example: Benefits • Greater flexibility in project structure. • More control over versioning and organization of database migrations, especially when "diffi…
No pledges yet. Be the first to back this.
Comments
Similar requests
Enhance GitHub Integration for Supabase to Support Full config.toml Configuration
2 votes · 0 comments
Infrastructure as Code / config.toml for production
14 votes · 0 comments
Support for versioned subfolders in migrations
2 votes · 0 comments
Add `supabase config pull` command
62 votes · 0 comments
Webhooks which call Edge functions should be configured via config.toml
1 vote · 0 comments
No comments yet.