In plain English
It depends on which kind of migration your team means, because the phrase covers two very different jobs. A schema migration changes the structure of your existing database, like adding a column or a table. Most take minutes to a few days of work, and engineers do them all the time. A platform migration moves your data to a new home, such as from one cloud provider to another or from MySQL to Postgres. For a small company, that usually takes 2 to 8 weeks of focused work. Larger or messier systems can take 3 to 6 months. The actual cutover, the moment you switch over, is often just a few hours, often scheduled at night. Most of the time goes into planning, testing, rehearsing, and cleaning up data, not moving it.
What it means for you
Routine schema changes should barely register on your roadmap, but a platform migration is a real project that pauses or slows feature work for weeks. The biggest risk is not delay but data loss or downtime, so a slower, rehearsed plan is usually cheaper than a fast one.
Ask your tech lead
- Is this a schema change inside our current database, or are we moving to a new database or provider?
- Have we done a full rehearsal on a copy of production data, and how long did the cutover take?
- What is our rollback plan if something looks wrong after we switch, and how long can we wait before rollback is no longer an option?
Listen for
- No rehearsal on a realistic copy of production data, just confidence that it will work on the night.
- No written rollback plan, or a rollback plan that boils down to restoring last night's backup and losing a day of customer data.
- The estimate covers only copying the data and ignores updating the app code, reports, integrations, and background jobs that touch the database.
In more detail
In practice, a platform migration has four phases. First, the team maps what is in the database and everything that talks to it, including the app, analytics tools, scheduled jobs, and third-party integrations. Second, they set up the new database and write scripts to copy and convert the data. Third, they rehearse, often several times, on a copy of real data to find problems and time the cutover. Fourth comes the cutover itself, followed by a week or two of watching closely. Planning and rehearsal usually eat 60 to 80 percent of the calendar time.
Rough ranges for a small company: moving the same database type to a new host, like Postgres on one cloud to Postgres on another, often takes 1 to 4 weeks. Switching database types, like MySQL to Postgres, usually takes 4 to 12 weeks because queries and data types need rewriting. Moving from a document store like MongoDB to a relational database can take 2 to 6 months, since the data has to be restructured. Data size matters less than you would think until you pass a few hundred gigabytes. Complexity and messy old data matter more.
The main trade-off is downtime versus effort. A simple approach takes the app offline for a few hours while data copies over, which is fine for many B2B products if you warn customers and pick a quiet window. A zero-downtime approach keeps both databases in sync and switches traffic gradually. It avoids the outage but can double the engineering time. If your customers can tolerate a two-hour Sunday maintenance window, that is often the smartest money you will save on the whole project.
A realistic example: a 12-person SaaS company with about 50 gigabytes of data moved from a self-managed MySQL server to a managed Postgres service. Two engineers estimated three weeks. It took seven. The data copied fine, but they found dozens of queries that behaved differently in Postgres and a reporting tool that broke silently. They rehearsed the cutover three times, got it down to 90 minutes, and switched on a Saturday night with no data loss. The extra four weeks was annoying, but the rehearsals were why launch night was uneventful.