# Intro to Migrations

DevFeed: [Intro to Migrations](<https://devfeed.tech/articles/intro-to-migrations-81385.md>)

Original publisher: [Read original article](<https://stack.convex.dev/intro-to-migrations>)

Author: Stack

Published: 2023-05-05T18:00:00Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [Data Management](<https://devfeed.tech/topics/data-management.md>), [schema design](<https://devfeed.tech/topics/schema-design.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [self-hosted databases vs managed services](<https://devfeed.tech/topics/self-hosted-databases-vs-managed-services.md>)

Tags: [all-in](<https://devfeed.tech/tags/all-in.md>), [async](<https://devfeed.tech/tags/async.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [branch](<https://devfeed.tech/tags/branch.md>), [database](<https://devfeed.tech/tags/database.md>), [database-schema](<https://devfeed.tech/tags/database-schema.md>), [databases](<https://devfeed.tech/tags/databases.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [fundamentals](<https://devfeed.tech/tags/fundamentals.md>), [migrations](<https://devfeed.tech/tags/migrations.md>)

## AI overview

This tutorial explains database migrations, contrasting offline migrations that pause traffic with online migrations that update data asynchronously. It outlines risks and practices for safe schema and data changes, including preserving old and new formats during transitions, avoiding premature data deletion, and separating schema changes from code changes.

## Source excerpt

There are as many ways to migrate data as there are databases, but here's some basic information to set the stage.