Comments (6)
I've fixed this regression npx supabase@beta db diff
. Apologies for the inconvenience.
from supabase.
Hey hey, thanks for opening!
By default, the migrations commands exclude system schemas but it can include them if it is run with -s
. Was it ever run to include the _analytics
schema or is this included consistently when you run commands like db dump
or db pull
?
I cannot reproduce but this does not mean it is not a bug! Just want to sanity check first that _analytics
was never included. You can check this in your terminal history (ctrl+r) will allow you to search.
from supabase.
I only used -s public
once with supabase db dump
, but this did not affect migrations created afterwards. _analytics
was never included explicitly. The migration just prior to the faulty one did not contain _analytics
.
Happy to share a debug log if there is a way to exclude private/organization data.
from supabase.
Hello, I have the same issue, I created a new project online, then linked it to a local projet, pulled the db. I then enabled "analytics" in config.toml then ran "db diff" to create a migration file which should not contain anything because it's a brand new project with nothing added but it does contain the definitions for the table _analytics.
from supabase.
Just upgraded my local environment to v1.167.4 (CLI); issue still exists.
When I create a new migration (e.g. supabase db diff -f add_output_tables --use-migra
), the log output explicitly says that the extra schemas are included:
Diffing schemas: _analytics,_realtime,extensions,public
When I add -s public
, the log will state Diffing schemas: public
, but the actual migration file will still contain the extra schemas.
Update: It now worked as expected using -s public
, still failing without.
from supabase.
I have the exact same issue today.
Thank @stefan-girlich for the workaround.
But internal schema should be excluded while creating migration.
from supabase.
Related Issues (20)
- Triggers on auth.users are removed when updating local Supabase version HOT 2
- React Native and Fetch via Server API in nextjs - 401 Unauthorized error HOT 1
- Checkbox in Light theme HOT 2
- Select rows is incorrect when switch pages in Table editor
- Docs don't say what the default database user ID & password are. HOT 5
- Deno secrets example has typo
- Issue logging into supabase website with github creds HOT 1
- Chore: Replace go-gomail/gomail with wneessen/go-mail HOT 2
- Unable to Upload large zip file of zip files over 5gb on production HOT 10
- 413 Payload Too Large HOT 4
- Supabase logo overlap with menu HOT 1
- Unable to create user due to CSP in docke3r env HOT 2
- signInWithPassword does not return an error code when the login credentials are invalid HOT 5
- Supabase vercel integration doesn't detect vite project
- cookieOptions and config.toml config for cookie MaxAge are ignored
- Logs are not working properly | Getting 502 errors HOT 2
- [Self Hosting] supabase-analytics is unhealthy, Monotonic time stepped backwards. HOT 2
- Verify Custom Claims on Server Side in Nextjs Middleware.ts HOT 3
- There should be an api for deleting folders HOT 3
- CORS Error for Auth Request from React app to local Supabase HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase.