You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a mechanism for pg roles that allows marking them as existing
pgRole('admin').existing();
which excludes them from migrations.
It would be great to have the same mechanism for tables. A common use case for this feature is Supabase tables like auth.users which are already existing in database.
For now I'm adding this tables to schema and editing generated migration files, so they don't create such tables. But this approach is error-prone in many ways
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
There is a mechanism for pg roles that allows marking them as existing
which excludes them from migrations.
It would be great to have the same mechanism for tables. A common use case for this feature is Supabase tables like
auth.users
which are already existing in database.For now I'm adding this tables to schema and editing generated migration files, so they don't create such tables. But this approach is error-prone in many ways
Beta Was this translation helpful? Give feedback.
All reactions