Compare commits
No commits in common. "main" and "v0.1.1" have entirely different histories.
@ -68,8 +68,7 @@ scribase-migrate clerk --to <org>/<project> --secret-key <sk_...>
|
||||
scribase-migrate resend --api-key <re_...> --out resend-export.json
|
||||
```
|
||||
|
||||
Prefix each with `npx --yes git+https://rithub.dev/caelum0x/scribase-migrate.git` (Bun:
|
||||
`bunx -p git+https://rithub.dev/caelum0x/scribase-migrate.git scribase-migrate`), or clone the
|
||||
Prefix each with `npx --yes git+https://rithub.dev/caelum0x/scribase-migrate.git`, or clone the
|
||||
repo and run `node bin/scribase-migrate.mjs`. `--help` prints every flag.
|
||||
|
||||
| Source | Postgres schema + data | Auth users / passwords | Storage | Notes |
|
||||
|
||||
@ -289,20 +289,7 @@ async function runClerk(values, apiUrl, serviceRoleKey) {
|
||||
await writeResult(values, { exported: users.length, ...result });
|
||||
}
|
||||
|
||||
/** The control plane's own detail line, plus the one fix that applies, for errors a new user hits first. */
|
||||
function explain(error) {
|
||||
const detail = error?.problem?.detail;
|
||||
const lines = [detail ? `${error.message} (${detail})` : error.message];
|
||||
if (error?.code === 'migration_conflict') {
|
||||
lines.push(
|
||||
'This environment already has migrations that are not in ./supabase/migrations here. ' +
|
||||
'Run from the folder that holds them (your app repo), or pick a new environment in --to.',
|
||||
);
|
||||
}
|
||||
return lines;
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
for (const line of explain(error)) process.stderr.write(`scribase-migrate: ${line}\n`);
|
||||
process.stderr.write(`scribase-migrate: ${error.message}\n`);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user