Decoupling Database Migrations From Server Startup: Why And How

If you’re using a schema management tool like Django ORM or Alembic, you need to run the migration at some point. And it’s tempting to run the migration as part of application startup—when you’re using Docker, for instance, you’ll have an entrypoint that will first run the migration and then start the application.


Comments

Be the first to comment !



Related Posts


4 months, 1 week ago

Yugabyte/Yugabyte-db

The high-performance distributed SQL database for global, internet-scale apps.

..

4 months, 1 week ago

Why Benchmarking Distributed Databases Is So Hard

Benchmarks are hard to get right, and many articles touting benchmarks are actually benchmarketin..

4 months, 1 week ago

We Built Our Own Serverless Database, And You Should Too. - Thomas Michael Wallace - SLS LDN 2018

At two in the morning I was rapidly firing up EC2 instances in a desperate attempt to keep our pl..

Ron Pantofaro , 5 months, 1 week ago

Keep Calm And Query on: Running Your Databases in GCP

When you run a database on GCP, you can choose between managed services or running on infrastruct..

4 months ago

Outline/Outline

The fastest wiki and knowledgebase for growing teams. Beautiful, feature-rich, markdown compatibl..

4 months, 1 week ago

Write Maintainable Integration Tests With Docker

Testcontainer is an open source community focused on making integration tests easier across many ..

-->