Reputation: 23
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
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