Why changing Strapi content types in production puts data at risk
When an editorial team needs a new field or a renamed content type while the site is live, the change looks small in the Content-type Builder. In Strapi, a schema change is a code change: the content type definition lives in your project files, and schema sync applies it to the database. Removed fields and tables can be dropped by that sync without a backup or migration step, so the editor's request can destroy content that is already published.
This matters most after launch, once there is real content in the database and more than one environment, such as a development instance, a staging copy and production. Before launch, a dropped column costs little. Afterward, the same change can remove entries editors wrote months ago, break queries in the front end and leave staging and production with different schemas. The scope of this topic is Strapi 5 self-hosted projects, where your team controls the database, deployment pipeline and backups.
Start by listing every schema change planned for the next release and marking each one as additive (a new field), a removal, or a rename. Removals and renames carry the risk, because sync treats a renamed field as a removed field plus a new one unless you handle it explicitly. Confirm in your own environment, against the Strapi version you run, how sync behaves for each case, and rehearse it on a copy of production before any change reaches the live database. The Strapi v4 to v5 migration introduction and FAQ is a useful reference for how Strapi 5 handles data changes during upgrades.
Which change method fits which kind of schema change
This table compares four ways to change a Strapi content type and the risk each one carries. Start from the change you need to make, then check the verification column before any environment receives it. The main takeaway is that production data should only be exposed to a schema change that has been committed, reviewed, and rehearsed on a copy of production.
| Method | When it fits | What it risks | What you must verify |
|---|---|---|---|
| Content-type Builder in development | Prototyping fields and types on a local project | Changes made in a shared or deployed admin may not match the code in Git | Exported schema files are committed before any other environment receives the change |
| Schema files committed through Git | Any change that must reach staging and production the same way | Reviewers can miss a removed field in a diff, and sync acts on whatever is removed | The diff lists every removed field and table, and the change runs on a staging copy first |
| forceMigration as a deliberate sync setting | A change sync will not apply safely without an explicit decision to proceed | Fields, tables and their data can be dropped, and recovery depends on having a backup | A full database backup exists, the restore has been tested, and the change was rehearsed on a copy of production |
| Database migration scripts before sync | Renaming fields, moving values or backfilling data before the schema changes | Wrong ordering or a script that is not idempotent can corrupt data when it reruns | Script order, idempotency and a test run on a production copy. Covered in the sibling topic on writing Strapi database migration scripts |
| Removing a field after its data is moved | Retiring a field once its values are copied and no consumer reads it | Early removal breaks old clients, webhooks or queries that still read the field | No API consumer, integration or report reads the field, and the backup is kept until this is confirmed |
Why the Content-type Builder should stay out of production
The Content-type Builder is convenient because it edits schema in a browser, but that convenience is what makes production changes hard to review, repeat and reverse. The cards below describe four risks that compound each other, and each one points to a check you can run before any model change reaches live content.
Edits bypass version control
When someone adds or edits a content type in the admin panel, the change lands in the running project's schema files without a commit, pull request or author attached to it. The schema definition in your repository then no longer matches what is running. Ask your team which schema changes can be made from the admin panel in production, and confirm how Strapi writes those edits to disk in your version of Strapi 5 before you rely on Git history for schema.
Strapi 5 docsEnvironments drift apart
Development, staging and production each receive schema edits at different times and by different people. A field added in staging may never reach production, while a field deleted in production may still exist in a branch. Over months, the three databases hold different shapes of the same content, and a deploy that works in staging can fail or silently alter data in production. Compare schema files across environments before each release and record which environment is the source of truth.
Reviewers never see the change
A pull request that edits a content type's JSON file is easy to approve, but a reviewer rarely sees the downstream effect: which fields are removed, which relations change cardinality, or which front-end queries read the old names. Without a written change summary, the review checks syntax rather than data impact. Require each schema change to name the affected fields, the expected database effect and the front-end consumers, and confirm that your review tooling flags deleted attributes.
Rollback is unclear
Reverting a schema file restores the definition but does not restore data that Strapi already removed from the database when the new schema synced. A rollback that looks like a Git revert may leave columns or tables missing, and the documentation for Strapi 5 states that downgrading is not supported, so the only dependable recovery is a database backup taken before the change. Ask who owns the backup, how long a restore takes in your environment and whether anyone has tested it on a copy of production.
How to set up a release process for model changes
This sequence turns schema edits from ad hoc admin panel changes into reviewed, tested, and reversible releases, so each change reaches production with a known data outcome and a restore point.
Keep schema files in Git
Commit the content type definitions under src/api and src/components to the same repository as the application code, so every model change has an author, a diff, and a history. The developer who owns the model confirms that the Content-type Builder is used only in development, and that production edits arrive through commits. Done when the main branch holds the current schema files and a fresh clone of the repository matches the running schema in a development environment.
Change models in a feature branch
Make the model change in a branch, using the Content-type Builder locally or by editing the schema JSON directly, then run the project locally to confirm that the admin panel and the generated API reflect the change. Ask the developer to note which fields are removed or renamed, since those are the changes that can drop data during sync. Done when the branch builds, the local server starts, and the change is listed in the pull request description with its removed or renamed fields called out.
Rehearse the change on restored production data
Restore a recent production database backup into a non-production environment, deploy the branch against it, and let the schema sync run. Check the restored copy for missing columns, lost relations, and unexpected table removals, and compare entry counts for the affected types before and after. Done when the rehearsal completes on the copy, the counts match what the team expected, and any surprises are recorded as blockers or accepted risks in the pull request.
Write data migrations before sync
When a change renames a field, moves data between fields, or backfills a new required value, write the data migration as a script that runs before the schema sync. Keep the script idempotent so it can be run twice safely, and test it on the restored copy. Done when the script produces the expected values on the copy, a second run changes nothing, and the test results are attached to the pull request.
Review the schema diff
Have a second engineer and, for regulated content, an editorial owner review the diff of the schema files along with the migration script and the rehearsal results. Check for removed fields, changed relation directions, altered enum values, and any change to draft and publish or localization settings. Done when the reviewers approve in writing and the approval is linked to the release ticket.
Deploy with a database backup taken first
Take a fresh database backup immediately before the release, record its identifier and time, and then deploy the approved commit. Strapi does not support downgrades, so the backup is the rollback path if the change must be reversed. Done when the backup is confirmed restorable by a recorded restore check or documented procedure, and the deployment log shows the backup identifier next to the release version.
Verify content and API output after start
After the new version starts, check the admin panel for the changed types, compare sample entries against the pre-release record, and call the affected API endpoints to confirm response shape and population. Confirm that the schema sync did not drop any table or column that the rehearsal kept. Done when the checklist is signed off by the release owner and the results are filed with the release ticket, or the team has restored the backup and documented why.
When forceMigration is the right call and when it is not
The forceMigration setting tells Strapi's schema sync to proceed through changes it would otherwise stop on. Without it, the sync halts when a change would remove a field, a table or a column that still holds data, which is the safe default. With it, the sync runs those destructive steps, and the data in the affected columns or tables can be lost with no undo. Treat it as a deliberate override of a safety check, not as a way to clear a stuck deployment. Confirm the current option name, where it is set and its exact behavior in the Strapi documentation for the version you run, because the behavior has changed between releases and the docs are the reference for your build.
Use it only when all four conditions are met at once. First, a verified backup exists: a database dump that you have restored to a scratch environment and confirmed contains the rows you expect, not just a backup job that reports success. Second, a tested copy of production has been run through the exact schema change, including the uploads and locale data that the sync may touch. Third, a documented migration plan states which fields are removed, where their values are copied first (for example with a migration script that runs before the sync), and how editors will be told. Fourth, a named owner is accountable for the run and can decide to stop it. If any one of these is missing, the answer is no.
Do not use it to get past an error you do not understand, to fix a schema that drifted between environments, or to save time in a release that has not been rehearsed. In those cases, the sync stop is information: it shows that the code and the database disagree. Investigate the difference, correct it in version control, and rerun the sync without the override. Record the decision, the backup reference and the owner's sign-off in the release record so that an auditor or a later incident responder can reconstruct why a destructive change went ahead.
How a model change moves from branch to production
The change starts as a schema edit on a feature branch, then the diff is reviewed before anything runs. A copy of production is restored into staging, where any migration script is tested and the database is backed up. Only after that does the change deploy and sync to production, followed by verification and a rollback decision. The dashed line between staging and production marks where production data must not be touched by experiments.
Model changes pass a diff review and a staging restore before production sync.
Operational controls to put around schema changes
Schema changes in Strapi are code changes that touch live data, so they need the same controls as any production release. The six controls below cover who approves a change, who can make one, which credentials run it, how data can be restored, how changes are traced, and when editors are affected. Check each one before the first production migration, not after the first incident.
Named approvers for model changes
Decide who signs off on any change to a content type, component or dynamic zone before it reaches production. The approver should understand both the editorial impact and the database effect, since a removed field can drop its stored values. Record the approver in the pull request and require a second reviewer for changes that remove fields or rename relations. Confirm that the approval rule is enforced in your Git hosting platform, not only described in a runbook.
Admin roles without model access
Editors should not be able to change content types from the admin panel in production. In Strapi, the Content-type Builder is meant for development, so production admin accounts should hold content permissions only. Review the roles assigned to each administrator and remove model-building rights from anyone who does not own schema work. Test the restriction with a non-developer account before go-live, because a role that looks restricted in a review can still reach the builder.
Scoped database credentials for the deploy job
The job that applies schema changes needs database rights for that work, and nothing more. Use a dedicated database user for deployments, separate from the application's runtime user, and remove its rights once the release finishes if your process allows. Store the credentials in your secrets manager and restrict who can read them. Ask whether the account can drop tables, because that is the permission that turns a removed field into lost data.
Backups with tested restores
Take a database backup immediately before every schema change and keep it for a period your recovery plan defines. A backup that has never been restored is unproven, so schedule restore tests on a separate copy of production. Strapi's migration documentation says to back up the database first and notes that downgrading is not supported, so the restore path is the only rollback for many changes. Ask your team to time a restore and record the steps.
Strapi migration FAQAudit trail through Git history
Keep every model definition in version control so each change has an author, a reviewer, a commit and a deploy record. Git history answers which field was removed, when, and under which approval, without relying on memory. Strapi's built-in audit logs are an Enterprise feature in its self-hosted plans, so teams on Community or Growth should decide whether Git plus deploy logs meet their requirements. Confirm with your compliance team which records they need to keep and for how long.
Change windows for editors
Schedule schema migrations for a window when editors are not drafting content for the affected types. Announce the window, freeze publishing for those types, and tell editors which fields will move or disappear. A migration that runs during active editing can leave drafts that no longer match the schema. Agree on a rollback decision point inside the window, so the team knows when to stop and restore rather than continue past a failed step.
Questions teams ask before changing Strapi models in production
Does renaming a field in Strapi lose its data?
Usually yes, if the rename only happens in the schema. Strapi sees the new name as a new field, so the schema sync can remove the old column and its values along with it. A safe rename needs a migration script that copies the values into the new field before the sync runs, then checks the row counts afterward. Confirm how your Strapi version handles renames in the schema sync docs, and test the script on a copy of production before it touches live content. Renames on fields with localized or draft versions need extra checks, because each locale and version holds its own rows.
How long does a Strapi schema change take in production?
No single duration applies, because the time depends on the data and the process around the change. The main drivers are:
- Row counts and the size of the largest content types, including relation and component tables
- The number of locales and whether drafts and published versions both hold data that must be migrated
- Custom migration scripts, their ordering and how long each takes to run on a copy of production
- The number of environments the change passes through before release, and the testing each one needs
The fastest path is a small schema change on a small dataset with a rehearsed script. Ask for the time estimate to be split into analysis, script writing, rehearsal, backup, release and verification, so each part can be checked against your maintenance window.
Can our own team change Strapi content types without a consultant?
Yes, if the team has Node.js and database skills, access to version control and a staging copy of production. The work is less about the schema edit itself and more about the surrounding steps: a verified backup, migration scripts that are idempotent, a rehearsal on a copy, a release checklist and a rollback plan. Teams that have never released a schema change often underestimate the testing effort. A consultant can be useful for a first change, for a large dataset or when a change touches many relations, and the engagement can be scoped to those parts only.
What does a consultant need from us to plan a schema change?
A consultant needs enough detail to see what will change and what the data looks like. Prepare:
- The Strapi project in version control, including the current content type schemas and any existing migration files
- The database engine and version, which must be supported by your Strapi release, such as PostgreSQL 14 or later
- Row counts for the affected content types and the largest tables
- A written list of planned changes, with the business owner for each
- Access to a staging copy of production and the restore procedure for it
- The maintenance window, freeze rules for editors and the people who approve the release
With these inputs, the scope and quote can follow from the actual work rather than from assumptions.
Does Strapi Cloud change how we handle content model changes?
Strapi Cloud changes who runs the hosting, not the core discipline of changing models safely. Schema changes still need code in version control, migration scripts, a rehearsal on a copy and a rollback plan. Strapi's published Cloud plans list Starter at 35 US dollars per month per project, Pro at 90 and Business at 450, with the Business plan carrying a 99.9% uptime SLA. Confirm what each plan provides for environments, backups and restores before relying on them, since those features decide how you rehearse and recover a change. Self-hosted Growth pricing at 45 US dollars per month includes content history and releases, which some teams use to review changes.
What does a rollback look like after a failed Strapi schema change?
A rollback usually means restoring the database from a backup taken just before the release and redeploying the code from the previous release. Any content written after that backup is lost unless it is captured and replayed, so teams often pause editing during the release window. Strapi's v4 to v5 migration guidance says to back up the database first, because downgrading is not supported. Plan the rollback before the release, rehearse the restore on a copy, and define the point at which the team stops trying to fix forward and restores instead.
Can we edit content types in the Strapi admin panel in production?
The Content-type Builder is meant for development, so schema changes should be made in code, committed, reviewed and promoted through each environment. Edits made directly in production can drift from the code in version control, which makes the next deployment harder to reason about. Strapi's schema sync then applies whatever the code describes, and removed fields or tables can be dropped. Confirm the current guidance in the Strapi docs for your version, and set a team rule that production schemas change only through a release.
Official Strapi documentation to read first
Before you change a content type in a live Strapi project, read the backup and downgrade guidance in the Strapi v4 to v5 migration introduction and FAQ. The docs tell you to back up the database first because downgrading is not supported. That rule applies to any production change, not only to a major upgrade, so copy it into your own release checklist. Confirm the backup and restore steps against your database engine and hosting setup, and time a test restore before you rely on it.
Next, check the Strapi installation requirements for the database and Node.js versions your project supports. Strapi 5 supports PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3, and it runs only on Active or Maintenance LTS Node.js versions. Your staging database should match production in engine and version, because a schema change that behaves well on SQLite can behave differently on PostgreSQL. Confirm the current list on the page before you pin versions in your build.
The schema sync and forceMigration behavior are the parts of Strapi most likely to have changed since your project was started, so read the current Strapi docs on those topics directly rather than relying on older blog posts or memory. Look for what the sync does with removed fields and tables, when a schema change requires a forced migration, and how the Content-type Builder is restricted outside development. Record the Strapi version you read the docs against in your change ticket so reviewers know which behavior applies.
How DeployOpen works on this
DeployOpen plans and delivers Strapi schema changes inside your own infrastructure, starting from a written scope that covers the content types, data and environments involved. The work moves through a tested release process so that model changes reach production without dropping fields, tables or editorial content.
How we scope
- We inventory the content types, components, dynamic zones and relations that the change touches, and which of them hold live editorial data.
- The written scope names the environments, the database engine, the Strapi version and the change types covered before any work starts.
- We agree which changes need a data migration script, which need a fixed release window, and who approves each production deployment.
How we build
- We edit schema files in version control rather than in the Content-type Builder on production, and review each change through a normal pull request.
- We write and test migration scripts against a restored copy of production data, then confirm field removals and renames preserve every entry.
- We configure backups and a rollback path before the release, and record the forceMigration decision and its effect in the change record.
How we hand over
- You receive the schema change set, migration scripts, test results and a runbook for each release that changes a content model.
- Your team gets a documented release checklist covering staging rehearsal, backup verification, deployment order and post-release content checks.
- We walk your engineers and content leads through the process so future model changes follow the same path without us.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer for teams that change models frequently.
- A retainer can cover review of new schema changes, rehearsals on a copy of production and updates when Strapi minor releases ship.
- Quotes are based on the written scope, so ask for the environments, change volume and support hours each option includes.

