DavidWebster
DavidWebster

Reputation: 23

Clean install of Strapi with existing database - can the content types be restored?

I am currently trying to install a fresh install of Strapi against an existing database that was populated some time ago. Whilst I have been able to build a new project that points to the existing database using 'strapi new new-project-name' and can regenerate the API through 'strapi generate:api exampletype', I have found that the Content Types and the content editors do not regenerate in the admin area. Is this a supported scenario of Strapi please or is there a package that can be used to perform this task?

Thanks, David

Upvotes: 2

Views: 2277

Answers (1)

Derrick Mehaffy
Derrick Mehaffy

Reputation: 855

There is not a package that can do this automatically, you can use the strapi generate command as you stated and move over each model.settings.json from the old project.

Content-types are not stored in the database, they are defined by those settings files.

Upvotes: 2

Related Questions