NOTICE messages from migrations cause supabase start to fail
Bug report
Describe the bug
If you run SQL statements that generate NOTICE non-fatal error output this causes supabase start to terminate after starting the database without starting any of the other services. For example, if you try to add an extension that already exists
create extension if not exists pgcrypto with schema extensions;
it will show the NOTICEs generated by the migration and stop the startup sequence without starting the API, Studio, etc. even though the migration was successful.
ᐅ supabase start
Error: Error starting database: NOTICE: extension "uuid-ossp" already exists, skipping
NOTICE: extension "pgcrypto" already exists, skipping
NOTICE: extension "pgjwt" already exists, skipping
NOTICE: extension "pg_graphql" already exists, skipping
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Create a migration and include the statement
create extension if not exists pgcrypto with schema extensions;
- Run
supabase start - Look at the command line output
- Run
docker containers ls - See that only postgres is running
Expected behavior
supabase should continue its startup sequence and start the rest of the services
System information
- OS: macOS
- Version of supabase-cli: 0.24.5
Thanks for the report! This should be resolved in the latest version. Can you upgrade and try again?
Feel free to open this ticket again if the problem persists.