Closed add-n2x closed 3 weeks ago
Sounds like the corresponding file isn't exported/imported before this row is added. Are you exporting directus_files
? Which could be a problem since you probably don't have the file locally or?
Closing this due to possibly incorrect configuration.
Sounds like the corresponding file isn't exported/imported before this row is added. Are you exporting
directus_files
? Which could be a problem since you probably don't have the file locally or?
Not sure. Your docs do not mention such setting. I am just using the defaults.
Can you please point me to where and what needs to be configured?
Edit: I did also manually copy all the files.
I put the files belonging to the directus styling in a folder (via directus ui), then added this to 'directus_config.js`:
directus_files: {
watch: ['files'],
excludeFields: ["modified_by", "uploaded_by"],
query: {
filter: { folder: { id: { _eq: "d169b6d9-9e72-4adc-aaca-548fa22aeab5" } } },
},
},
id equals this folders id.
Afterwards, loop over the exported files json to download the files from the server where u exported files from and use the update file endpoint to add the file data to the server where u want to import to
Describe the Bug
First of all - thanks for building such a great extension!
I'm just getting started and I'm not able to import due to an
INVALID_FOREIGN_KEY - Invalid foreign key for field "project_logo" in collection "directus_settings"
error.In the schema-sync docs I could not find any info on how to deal with uploads and if they are also synced. I have even tried copying the
uploads
folder manually. But no success.To Reproduce
I have done an export using:
Then on the remote machine I did:
Version
directus-schema-sync 2.1.1 directus 10.12.0
Installed Extension Via
Docker file