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
My database is created using Supabase. I'm managing migrations with their tools and not with sqlx. More about my setup in this previous question. Here's the code for my test:
createschemaif not exists "extensions";
create extension if not exists "postgis" with schema "extensions";
createtable "public"."districts" (
"id"integer generated by default as identity not null,
"name"textnot null,
"metro_id"bigint,
"census_year_id"bigint,
"geom" geography(MultiPolygon,4326) not null
);
-- <snip>
The first two commands work when run by sqlx::test, but creating the table fails:
Is there some way to get this working? 🤞 This comment seems to say that adding extensions in migrations isn't supported, although the create extension command seems to work just fine above.
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
-
My database is created using Supabase. I'm managing migrations with their tools and not with sqlx. More about my setup in this previous question. Here's the code for my test:
My database also uses the PostGIS extension. In fact, it's the very first thing installed by my migration scripts:
../backend/supabase/migrations/20231216192815_initial_schema.sql
The first two commands work when run by
sqlx::test
, but creating the table fails:Is there some way to get this working? 🤞 This comment seems to say that adding extensions in migrations isn't supported, although the
create extension
command seems to work just fine above.Beta Was this translation helpful? Give feedback.
All reactions