30. Migrating from Supabase (FAQ)
Common questions from teams moving an existing Supabase project to Eurobase — what ports cleanly, what needs a rewrite, and where we're honest about the differences.
Eurobase is close to Supabase in shape — Postgres, Row-Level Security, an SDK with a familiar API, EU storage with signed URLs — but it is not a drop-in replacement. A migration CLI (eurobase import supabase) automates most of a move, starting with an assess step that reports what transfers cleanly and what needs changes. The next step, eurobase import supabase schema, writes your tables, policies, functions and views as a migration file you review and apply. Both only read from Supabase and need CLI 0.6.3 or later. If you'd like us to go through the report with you, get in touch. The answers below are deliberately straight about the gaps.
For the whole migration in order, with every command, see chapter 31, Migrating from Supabase, step by step; it also has a Claude skill that does it for you.
Migrating in
Can I import my existing users without password resets?
Yes. We use bcrypt in the same format as Supabase, so password hashes import as-is and your users keep their passwords. The importer keeps user ids (so RLS keeps working), email-confirmed status, metadata, bans that are still running, and OAuth links. The one exception: a hash with a bcrypt cost above 12 is not imported, and that user sets a new password with “forgot password”. Without the CLI, the users API's batch import takes the same bcrypt hashes and ids (see below).
How do my users and data come over?
With eurobase import supabase data (CLI 0.6.5 or later), after the schema migration has been applied, into a project that has no data yet. It reads your Supabase database in one read-only snapshot and writes migration files; eurobase migrations up applies them. Users come first, then each table's rows, parents before children. Values are copied as they are, sequences continue after the imported ids, and your triggers are off while rows are inserted, so audit rows and timestamps aren't written a second time. To try it on part of your data first, leave out large tables with --exclude-table logs,events (CLI 0.6.8 or later); a table whose rows refer to a left-out table has to be left out too.
The command lists what it changed or left out. Read that list before you apply:
- Users deleted on Supabase and SSO users are not imported. Anonymous users are, so their rows stay valid, but they can't sign in again.
- OAuth links come over for Google, GitHub, Apple, Microsoft and LinkedIn. Set each provider up in the project with the same OAuth app (client ID) as on Supabase, and try one sign-in per provider before you switch your app over. Links for other providers are left out; those users sign in with a magic link or a password reset.
- Emails are stored in lower case, and phone numbers with a leading
+. - Sessions and refresh tokens are not copied: every user signs in once on Eurobase.
- A table whose name a Eurobase project already uses (such as
usersorstorage_objects) is skipped. Rename it in Supabase and in your app first. - Every new project starts with a sample
todostable. If your Supabase project has a table with that name, drop the sample table in the new project before you apply the schema migration. - Foreign keys that form a cycle between two or more tables stop the import. Drop one of them in the project, import those tables with
--table, and add it back.
Do I have to rewrite my edge functions?
Mostly not. eurobase edge-functions deploy (CLI 0.6.6 or later) builds a function written for Supabase with a compatibility layer, so the code runs as it is: Deno.serve(handler), Deno.env.get(…), the Authorization header and createClient(url, key) with auth.getUser, from().select / insert / update / upsert / delete, rpc() and storage uploads and signed URLs. Imports (https://, npm:, jsr:, ../_shared files) are bundled into the function. Underneath, the queries run as SQL through ctx.db: there is no second API call.
Run eurobase import supabase functions in your Supabase project folder first. It builds every function, changes nothing, and tells you which are ready. Then --deploy deploys those.
- Secrets:
Deno.env.get("NAME")reads the function's env vars, then your project's Vault. The command lists the names your functions read; set each witheurobase vault set NAME VALUE. - Service role key: a client made with
SUPABASE_SERVICE_ROLE_KEYruns its queries with the service role, and the function is deployed with the allow-service-role setting. A client made with the anon key runs as the caller, under your RLS policies. - Calls without a signed-in user: on Supabase an anon-key client then acts as the
anonrole. A Eurobase function's SQL has no anon role (without a user it is the service role), so an anon-key client refuses its queries when nobody is signed in. For what such a function does on its own behalf, use the service role key client. - Trusted callers: a function that recognises a cron job or another server by comparing a header with the service role key needs a secret of your own: set
SUPABASE_SERVICE_ROLE_KEY(or any name you compare with) in the Vault and send it in a custom header. TheAuthorizationandapikeyheaders of a call aren't passed to the function, and without a value of your own the key is a new random value in every request. - Who is calling: the platform verifies the caller's token before your function runs.
auth.getUser(token)returns that user; the token you pass is not looked at. - What needs a change: requests to the Supabase API by URL (
/rest/v1,/functions/v1), calling another function withfunctions.invoke(), realtime channels,select()with an embedded table,or()filters, mostauth.admincalls and a direct database connection. The command lists each by file and line with what to use instead; an unsupported call that slips through throws with its name when the function runs. - Size and libraries: a function with its imports can be up to 1 MB, and libraries that need Node.js built-ins can't be used.
How do my files (storage buckets) come over?
eurobase import supabase storage (CLI 0.6.8 or later) shows your buckets, file counts and sizes; with --apply it copies every file into your project. Each file is streamed from Supabase straight to your project's bucket, a few at a time, so gigabytes are fine and nothing is stored on your machine. Stop it whenever you like: run it again and files already copied are skipped. It reads the files with your Supabase project's service role key (SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY).
- A bucket becomes a folder:
avatars/u1/me.pngstaysavatars/u1/me.png. A function deployed with the Supabase compatibility layer readsstorage.from("avatars")from the same folder. - Files keep their owners: the end user who uploaded a file keeps the access they had, and nobody else gets it. Import your users first (
import supabase data). A file whose owner isn't a user of the project becomes a developer file (--missing-owner skipleaves it out). - Public buckets become a folder shared with everyone, and their files become developer files: on Supabase anyone could read them. Their uploaders can no longer replace or delete them from your app. If your project already has files in that folder, the copy stops instead of making them public.
- Nothing is overwritten: a file your project already has under the same name, or one changed since it was copied, is left as it is and listed. A file deleted in your project after the copy comes back if you run it again: delete it on Supabase too.
- Storage policies are not carried over. Check that per-user ownership and shared folders cover what your policies allowed.
- Limits: one file can be up to 5 GB. The copy is not checked against your plan's storage limit: compare the total the command shows first.
What about my scheduled jobs (pg_cron)?
eurobase import supabase cron (CLI 0.6.7 or later) reads the jobs in your Supabase project and shows how each becomes a Eurobase cron job; --apply creates them. A SQL command becomes a SQL job with the same statement. A command that calls one of your edge functions with net.http_post(…/functions/v1/name) becomes a job that runs the function name, with the JSON body as its payload.
- Created switched off. The same jobs keep running on Supabase until you switch over, and most must not run twice. Switch them on in the console (Cron) when you do.
- Schedules are rewritten where the syntax differs:
1-5becomes1,2,3,4,5,MONbecomes1. The time zone is yourcron.timezone(UTC unless you changed it). - Same job, same times, or not at all. A job is only created when it would do what the pg_cron job does, at the same times. Everything else is listed with the reason, so you know what is missing.
- Headers and keys are not carried over. A cron job runs a function directly, so no request header from your pg_cron command is kept. Their names are listed; set one on the job in the console if your function needs it.
- What needs a change: a command with several statements, or a function call wrapped in other SQL (put the steps into one database function); SQL that uses Supabase's own schemas (
auth.,storage.,net.) or another schema of yours; maintenance statements such asVACUUMorREFRESH MATERIALIZED VIEW; a call to a URL that isn't one of your functions, or to a function with a query string (make it an edge function, or pass the values in the payload); a schedule in seconds (the shortest interval is a minute); and a schedule that limits both the day of the month and the weekday. A request body built in SQL isn't carried over: the function is called with an empty body. - Limits: a SQL job's statement may take up to 30 seconds. If your
cron.timezoneisn't an IANA name, pass--timezone Europe/Berlin.
Can I keep using supabase-js?
No — you switch to @eurobase/sdk. It is not wire-compatible, but the API shape is deliberately familiar (createClient, auth.signUp, .from(), .rpc(), .storage), so for a typical app it is a contained change.
Can I run a trial alongside my current setup?
Yes. Your account can have up to 10 projects on Pro, so you can stand up a test project next to your live backend and trial the migration before switching anything.
Database & auth differences
Is Row-Level Security supported?
Yes — RLS is the core authorization model, with the same helpers you know (auth.uid(), auth.role(), auth.email(), is_service_role()). The importer auto-translates Supabase policies and adds an is_service_role() branch to each. It also gives every table with RLS a policy that lets the service role read and write all rows (eurobase_service_role): Supabase's service role skips RLS entirely, so a table whose policies only let app users read was still writable by your server code. Tables you create later need such a policy too — no API key skips RLS on its own.
Are SECURITY DEFINER functions supported?
Not on self-serve surfaces — this is the biggest difference to plan for. Re-express them as plain (invoker) functions plus RLS, as server-side code using the service key, or as edge functions. Plain functions and trigger functions port fine. For the common is_member_of()-style helper used in team or organisation policies, see Group and team access.
What happens to my access rules when I import the schema?
Policies come over, rewritten for how Eurobase identifies callers. There are no anon / authenticated database roles: every API request runs as the same role, the signed-in user is auth_uid() (NULL when no one is signed in), and the secret key is public.is_service_role(). So TO authenticated becomes an auth_uid() IS NOT NULL condition, each policy gets a secret-key branch, and a table with RLS on and no policies gets a secret-key-only policy (on Supabase the service role skipped RLS there).
Some rules can't be carried over, and import supabase schema won't write the file until you've seen them and passed --accept-access-changes:
- GRANT / REVOKE restrictions (column-level security, tables or functions closed to
anon). Eurobase has no per-role grants, only RLS, and RLS works on rows, not columns: close a whole table with policies, move restricted columns into their own table with stricter policies, or serve them through an edge function. A view doesn't hide columns here, because callers can read the table it selects from. - Checks on the database role or JWT settings (
current_user,current_setting('role'),request.jwt.*). Rewrite them withauth_uid()orpublic.is_service_role(). - Policies, triggers, views or defaults that call a SECURITY DEFINER function. The function now runs with the caller's rights and only sees the rows the caller may see.
- Policies or triggers that had to be left out, for example because they read a materialized view.
The accepted list is written at the top of the migration file. Work through it before your app goes live on Eurobase; assess lists the GRANT / REVOKE restrictions and the SECURITY DEFINER functions as blockers up front.
Does the trigger on auth.users (profile-on-signup) pattern work?
No — the users table is platform-managed, so you can't attach a trigger to it. You can still reference it (REFERENCES users(id)) and read it server-side. Create the profile row in your signup code or an edge function; list and delete users through the admin API.
How do I see the source of a database function?
Click it under Cron & RPC → Functions, or run eurobase functions get <name>. You get the full CREATE OR REPLACE FUNCTION statement; edit and run it in the SQL editor to change the function. pg_get_functiondef() and other system-catalog queries are refused in your own SQL. See Cron & RPC.
How do I keep a test project apart from production in the CLI?
Log in with a personal access token scoped to the test project, under its own HOME: the CLI keeps its login and active project only in $HOME/.eurobase/config.json, and a scoped token is refused for every other project. See CLI.
Can I copy my schema to a test project without the data?
Yes. Apply your migration files to a fresh, empty project (eurobase migrations up) — you get tables, foreign keys, CHECK constraints, RLS policies and functions, with no rows copied. There’s no standalone schema-only export yet; on Team you can also pg_dump --schema-only over the direct connection. See Migrations.
How do I check a policy change and roll it back safely?
Apply it as a migration (one transaction: all or nothing), with a reviewed rollback migration written beforehand, since there are no down migrations. Rehearse both on a test project, save the policies and function definitions before and after through the schema endpoints, and test real calls as a user, anonymously and with your secret key. See Migrations.
How do I see my full RLS policies for a table?
Use the schema endpoints rather than catalog SQL (which is refused): GET /platform/projects/<id>/schema/tables/<table>/policies returns each policy’s USING and WITH CHECK (developer role); GET .../schema and .../schema/rls-audit give foreign keys and RLS status at viewer level. GET .../schema/functions/<name> returns a function’s definition, including trigger functions and the platform helpers auth_uid() / auth_role() / auth_email(). See Row-Level Security.
How do I make several writes atomic without client transactions?
Every API request runs in its own transaction. Put the related writes in a trigger (it commits or rolls back with the write that fired it) or in an RPC function (the whole function is one transaction; an exception undoes everything). Both run with the caller’s rights, so RLS applies; SECURITY DEFINER isn’t accepted. See Row-Level Security for a change-history example and the isolation level requests run at (READ COMMITTED).
Can I send auth emails (reset, magic link) to my own site, with my own templates and sender?
Redirect URLs to your own app are fully configurable (allow-listed, same idea as Supabase's site URL). Custom email templates are available on Pro. A custom SMTP sender is a Pro feature we're finalising — validate your provider in a test project before relying on it.
Private storage with signed URLs?
Yes — a private per-project EU bucket with signed download URLs. Access differs from Supabase's storage.foldername() policies: files are owned per end-user automatically, with a separate mechanism for developer-shared folders (authenticated or public). SDK signed-URL expiry caps at 1 hour, so long playback sessions re-issue the URL.
Auth from your server
Can I create or import users from my server, e.g. with their email already confirmed?
Yes, with the users API and a project token with the Admin role (not the secret key — there's no /v1/auth/admin). POST /platform/projects/<id>/users creates one user; POST …/users/batch imports up to 500 per request. The password is optional (users then sign in by magic link or set one with a password reset), email_confirmed defaults to true, and a batch can carry bcrypt password_hashes and keep existing user ids. Re-running an import is safe. See Managing End Users.
Can I fetch, list, change and delete users from my server?
Yes, the same API: GET …/users?email= (exact) or ?search=, a list with last_sign_in_at and email_confirmed_at, PATCH …/users/<id> to change the email, name, metadata or confirmation, DELETE, suspend and reset password.
Can I verify access tokens on my server without a network call?
Yes. Access tokens are ES256-signed with your project's own key pair; the public key is at https://your-project.eurobase.app/v1/auth/.well-known/jwks.json. Verify with any JWT library that supports JWKS (issuer eurobase, audience = your project ID); see chapter 6 for an example. A locally verified token stays valid until it expires, so use GET /v1/auth/user where you need to confirm the user still exists and read their current profile.
With email confirmation on, users who haven't confirmed get "invalid email or password". Why?
That changed: signing in with the right password before confirming now answers 403 email_not_confirmed (SDK: EMAIL_NOT_CONFIRMED), so you can offer resendVerification(email). Sign-up returns no session until the user confirms. Whether a user has confirmed is in email_confirmed_at. Use @eurobase/sdk 0.10.0 or later with this setting.
Can a signed-in user change their password?
Yes: POST /v1/auth/user/password with current_password and new_password and the user's access token. Their other sessions end once their current access token expires, and the response is a fresh session. An SDK helper (updatePassword) needs @eurobase/sdk 0.11.0 or later.
What rate limits should I set for a launch or migration day?
When many users sign up or sign in at once, raise sign-ups / sign-ins to 30 and token verifications (which include magic-link sign-ins) to 150 per 5 minutes under Auth → Rate Limits beforehand. See Rate Limits.
Is there an hourly limit on auth emails with the built-in sender?
No hourly cap on the number of emails sent. Per address: 3 magic links and 3 password-reset emails per 15 minutes, and one verification resend per 5 minutes. Per client IP: 60 password-reset and 60 verification emails an hour, and 300 magic-link requests an hour. For a migration day, magic links (300/h) go further than mass password resets (60/h).
Reliability, backups & leaving
What backups and uptime do I get?
The managed database is backed up automatically about every 24 hours at the infrastructure level on every tier (worst-case data loss ≈ 24 hours). Customer-controlled backups and self-serve restore are a Team-tier feature (dedicated EU database). Pro carries a 99.5% monthly availability target — see the SLA for the full detail.
Do you provide a DPA and a sub-processor list?
Yes — an auto-generated DPA report per project, and a published, EU-only sub-processor list (Scaleway for compute/database/storage/email in France, Mollie for payments, GatewayAPI for SMS). See the Compliance chapter.
What happens to my data if Eurobase shuts down?
If we cease operations, we keep the Service and your data online and exportable for at least 90 days before any deletion, with email notice to project owners. Your data is portable at any time regardless: export your schema, all table data, and a storage manifest from the console or API.
Everything runs in the EU on Scaleway (France) — database, storage, and custom Go auth services — end to end, under EU jurisdiction. That data-sovereignty guarantee is the main reason most teams make this move.