Import fails on storage invalid id
This is occurring with
convex@1.11.2
- I have dev and prod deployments running the same convex code
- dev deployment has all tables cleared and no files in storage
- I create a prod export that includes files via cli:
- I import the resulting file:
- CLI output:
If I do all of the above, but leave off --include-file-storage
in the export command, everything works fine.3 Replies
There are 13 files in storage, all images with a cumulative weight of less than 300kb.
I tried deleting the specific image called out in the error, which was not related to any record in the db, and it began giving the same error for a different image, which is referenced by a record in the db.
this is because the prod deployment was created before convex 1.7 while the dev deployment was created after (or vice versa). So the
_storage
ids are incompatible. There's currently no way to change the id format of _storage
tables (because they are system tables). Sorry, it's unfortunate. You can upload the files with new ids but there's no way to preserve old _storage
ids in a newer deploymentGot it š