Skip to content

Commit 6a2fac1

Browse files
goffrieConvex, Inc.
authored andcommitted
Add suggestion to use --replace-all in case of table conflicts (#43557)
I suspect that some people are using `--replace` to import backups when they really want `--replace-all`. This can lead to table conflict errors that would not happen in ReplaceAll mode. GitOrigin-RevId: ba0fd7686c509c2b965a1e5068fbb6a8592158dd
1 parent d24b959 commit 6a2fac1

File tree

1 file changed

+2
-1
lines changed
  • crates/database/src/bootstrap_model

1 file changed

+2
-1
lines changed

crates/database/src/bootstrap_model/table.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ impl<'a, RT: Runtime> TableModel<'a, RT> {
386386
} else {
387387
format!(
388388
"New table `{table}`{in_component} has IDs that conflict with existing table \
389-
`{existing_table}`"
389+
`{existing_table}`. To delete all existing tables, import with `npx convex \
390+
import --replace-all`."
390391
)
391392
};
392393
ErrorMetadata::bad_request("TableConflict", msg)

0 commit comments

Comments
 (0)