Is strapi import supposed to create schema?

System Information
  • Strapi Version: 4.9
  • Operating System: Ubuntu 22.10
  • Database: SQLite
  • Node Version: 18.15 LTS
  • NPM Version: 9.6
  • Yarn Version:

I built a strapi site locally and want to move it to a server for testing. I tried using strapi export / import but it complains that the schema is missing content types on the target site during import. Isn’t import supposed to create the schema on the target site if it doesn’t exist?

No, import does not create schema. The problem was that I hadn’t copied the project files to the server before trying to import. I assumed it was all in the database but the schema is stored under src/ which needs to be copied separate from the export file and should be under version control anyway. See here for more detail.