I’ve noticed something odd whenever I export/import Strapi DB, I have several components that have an Image in its definition, and whenever I export the DB and later import it, the relationships between those Components and the images are lost, breaking the App client.
I also noticed that the sequences aren’t reset whenever importing the DB, which I’m not sure it might be related; but I know for sure that there’s no reference to the files_related_morphs
table (or its records) within the jsonl
files from the exported file.
As far as I know, the files_related_morphs
is responsible of keep the relationships thus, this table isn’t being exported. Is anybody else experiencing this?
The commands I’m using as follow :
yarn strapi export --no-encrypt --file ~/Desktop/exported_db
and yarn strapi import -f ~/Desktop/exported_db.tar.gz
System Information
- Strapi Version: 4.10.5
- Operating System: macOS 13.4.1
- Database: PostgreSQL 14.8
- Node Version: 18.12.1
- NPM Version: 8.19.2
- Yarn Version: 3.6.0