# expand and contract migration

A database migration technique that separates schema expansion, data migration, and schema contraction to support zero-downtime upgrades.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## What Is a Schema Change? Types, Risks, and How to Catch Them

DevFeed: [What Is a Schema Change? Types, Risks, and How to Catch Them](<https://devfeed.tech/articles/what-is-a-schema-change-types-risks-and-how-to-catch-them-145882.md>)

Original publisher: [Read original article](<https://montecarlo.ai/blog-what-is-a-schema-change>)

Author: Virna Sekuj

Published: 2026-11-19T17:23:51Z

Content type: article

Language: en

Sources: [Monte Carlo](<https://devfeed.tech/sources/monte-carlo.md>)

Topics: [schema design](<https://devfeed.tech/topics/schema-design.md>), [Data Quality](<https://devfeed.tech/topics/data-quality.md>), [Database Migration](<https://devfeed.tech/topics/database-migration.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [data type](<https://devfeed.tech/topics/data-type.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [agent-trust](<https://devfeed.tech/tags/agent-trust.md>), [agent-trust-glossary](<https://devfeed.tech/tags/agent-trust-glossary.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [breaking-schema-change](<https://devfeed.tech/tags/breaking-schema-change.md>), [changes](<https://devfeed.tech/tags/changes.md>), [chema-change](<https://devfeed.tech/tags/chema-change.md>), [dashboards](<https://devfeed.tech/tags/dashboards.md>), [data](<https://devfeed.tech/tags/data.md>), [database-schema-change](<https://devfeed.tech/tags/database-schema-change.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [glossary](<https://devfeed.tech/tags/glossary.md>), [pipelines](<https://devfeed.tech/tags/pipelines.md>), [schema](<https://devfeed.tech/tags/schema.md>), [schema-change](<https://devfeed.tech/tags/schema-change.md>), [schema-change-detection](<https://devfeed.tech/tags/schema-change-detection.md>), [schema-drift](<https://devfeed.tech/tags/schema-drift.md>), [schema-evolution](<https://devfeed.tech/tags/schema-evolution.md>), [warning](<https://devfeed.tech/tags/warning.md>)

### AI overview

Schema changes alter dataset structure, and uncoordinated changes can silently leave pipelines, dashboards, models, and AI agents returning incomplete or wrong results. Adding columns is usually safe; removing or renaming columns and changing types are usually breaking, though additions can also affect strict loaders or SELECT * queries. The source distinguishes individual schema changes from schema drift, which accumulates or arrives without coordination, and planned, versioned schema evolution. It describes three detection approaches: data contracts enforced in CI for data an organization controls, pipeline tests limited to anticipated checks, and automated monitoring for changes in all tables, including third-party sources. Safer management includes additive migrations, versioning breaking changes, checking lineage, naming production columns explicitly, and routing alerts to downstream owners. Lineage helps identify affected assets, including agents, so teams can triage a change.

### Source excerpt

A schema change is any change to the structure of a dataset, such as a column being added, removed, renamed, or given a new data type. Schema changes are a normal part of evolving software, but when they happen without warning, they break the pipelines, dashboards, models, and AI agents that depend on that data, often without throwing an error.

## Upgrading Apache Polaris in Production: Schema Migrations, Rolling Changes, and Rollback

DevFeed: [Upgrading Apache Polaris in Production: Schema Migrations, Rolling Changes, and Rollback](<https://devfeed.tech/articles/upgrading-apache-polaris-in-production-schema-migrations-rolling-changes-and-rollback-102849.md>)

Original publisher: [Read original article](<https://www.dremio.com/blog/upgrading-apache-polaris-in-production-schema-migrations-rolling-changes-and-rollback/>)

Author: Alex Merced

Published: 2026-10-27T18:56:53Z

Content type: tutorial

Language: en

Sources: [Dremio](<https://devfeed.tech/sources/dremio.md>)

Topics: [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [Database Migration](<https://devfeed.tech/topics/database-migration.md>), [Production Engineering](<https://devfeed.tech/topics/production-engineering.md>), [progressive delivery](<https://devfeed.tech/topics/progressive-delivery.md>), [blue green and canary deployments](<https://devfeed.tech/topics/blue-green-and-canary-deployments.md>), [staging](<https://devfeed.tech/topics/staging.md>), [configuration-management](<https://devfeed.tech/topics/configuration-management.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Release notes](<https://devfeed.tech/topics/release-notes.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [apache-iceberg](<https://devfeed.tech/tags/apache-iceberg.md>), [apache-polaris](<https://devfeed.tech/tags/apache-polaris.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [data-lakehouse](<https://devfeed.tech/tags/data-lakehouse.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [dremio-blog-open-data-insights](<https://devfeed.tech/tags/dremio-blog-open-data-insights.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [production](<https://devfeed.tech/tags/production.md>), [rollback](<https://devfeed.tech/tags/rollback.md>), [schema](<https://devfeed.tech/tags/schema.md>), [tests](<https://devfeed.tech/tags/tests.md>), [token](<https://devfeed.tech/tags/token.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

### AI overview

A safe Apache Polaris upgrade needs separate checks for application, persistence schema, authentication, and client compatibility. The article recommends reviewing each version's release notes, testing the full upgrade path with production-like data, verifying backups and restores, and rehearsing rollback before production. Persistence migrations that rewrite data or require exclusive access should be treated as non-rolling changes in a maintenance window; a pod rollback cannot undo an irreversible migration, so recovery may require restoring the database and redeploying the old release. For staged rollout, use explicit Helm canary values, validate API, query, ingestion, and token exchange flows, then expand in waves while monitoring errors, latency, database integrity, and client adoption. Polaris 1.8 changed token exchange behavior, so some clients may need token reissuance or a shortened compatibility window. Chart keys and migration behavior vary by release and should be verified against the target version. The text also provides example acceptance checks, failure thresholds, and rollback scenarios for staging.

### Source excerpt

Upgrade Apache Polaris with compatibility checks, persistence schema migrations, rolling deployment gates, token tests, and a practical rollback plan. The post Upgrading Apache Polaris in Production: Schema Migrations, Rolling Changes, and Rollback appeared first on Dremio.

## How I Migrated a Live Database to a Many-to-Many Relationship

DevFeed: [How I Migrated a Live Database to a Many-to-Many Relationship](<https://devfeed.tech/articles/how-i-migrated-a-live-database-to-a-many-to-many-relationship-97407.md>)

Original publisher: [Read original article](<https://hackernoon.com/how-i-migrated-a-live-database-to-a-many-to-many-relationship?source=rss>)

Author: Gabriela Colombo Alves Longo

Published: 2026-10-23T08:53:36Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [Database](<https://devfeed.tech/topics/database.md>), [Data Quality](<https://devfeed.tech/topics/data-quality.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [backend](<https://devfeed.tech/tags/backend.md>), [backward-compatible-apis](<https://devfeed.tech/tags/backward-compatible-apis.md>), [clients](<https://devfeed.tech/tags/clients.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [database-backfill](<https://devfeed.tech/tags/database-backfill.md>), [database-schema](<https://devfeed.tech/tags/database-schema.md>), [database-schema-migration](<https://devfeed.tech/tags/database-schema-migration.md>), [event-platform](<https://devfeed.tech/tags/event-platform.md>), [expand-and-contract-migration](<https://devfeed.tech/tags/expand-and-contract-migration.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [graphql-api-compatibility](<https://devfeed.tech/tags/graphql-api-compatibility.md>), [index](<https://devfeed.tech/tags/index.md>), [integrations](<https://devfeed.tech/tags/integrations.md>), [many-to-many](<https://devfeed.tech/tags/many-to-many.md>), [many-to-many-relationships](<https://devfeed.tech/tags/many-to-many-relationships.md>), [system-design](<https://devfeed.tech/tags/system-design.md>)

### AI overview

The article describes evolving a live speaker-role feature from one-to-one to many-to-many while keeping existing events and clients working. Version 1 created a default role for every event, migrated existing speakers to it, and made GraphQL `roleId` optional so older clients received the default. Because existing free-text speaker types were sparse and inconsistent, the author used an organizer toggle instead of automatically converting them. For Version 2, a pivot table was added alongside the old foreign key; writes moved to the new table, existing links were backfilled, and reads preferred the pivot table with fallback to the old relationship. This let deployment and backfill proceed without a gap in role data or an API response shape change. The account emphasizes checking data quality and involving teams close to customers when choosing relationship cardinality.

### Source excerpt

How I shipped a feature as a 1:1 relationship, then redesigned it to many-to-many after release, without breaking existing events or clients.

## Database schema migrations for client apps and backends

DevFeed: [Database schema migrations for client apps and backends](<https://devfeed.tech/articles/update-db-schema-in-production-with-flyway-like-syntax-84590.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/database-upgrades-without-lost-data/>)

Author: Shai Almog

Published: 2026-10-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Database Migration](<https://devfeed.tech/topics/database-migration.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [ddl](<https://devfeed.tech/tags/ddl.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

Codename One describes using ordered, versioned SQL migrations across client databases and its backend. The article covers skipped releases, repeatable scripts, schema history, deployment validation, database-specific failure behavior, and testing upgrades from older schemas.

### Source excerpt

Use ordered SQL migrations on client and server, validate schema history and handle skipped releases. Understand baselines, repeatable scripts and transactional limits.

## How eBPF and OpenTelemetry Reveal a Payment Service Regression

DevFeed: [How eBPF and OpenTelemetry Reveal a Payment Service Regression](<https://devfeed.tech/articles/how-ebpf-enriches-otel-a-payment-service-quietly-regressing-after-an-unsuccessful-migration-79994.md>)

Original publisher: [Read original article](<https://www.groundcover.com/blog/ebpf-otel-payment-service-regression>)

Author: Anais Dotis

Published: 2026-09-22T17:13:00Z

Content type: article

Language: en

Sources: [Ground Cover](<https://devfeed.tech/sources/ground-cover.md>)

Topics: [eBPF](<https://devfeed.tech/topics/ebpf.md>), [service-mesh](<https://devfeed.tech/topics/service-mesh.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>)

Tags: [ebpf](<https://devfeed.tech/tags/ebpf.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [otel](<https://devfeed.tech/tags/otel.md>), [payment](<https://devfeed.tech/tags/payment.md>)

### AI overview

The article demonstrates how eBPF payload capture, OpenTelemetry traces, and Kubernetes configuration diffs helped investigate a payment service regression after a migration. It also describes eBPF's limits for identifying application functions without symbols and frame pointers.

### Source excerpt

Explore how eBPF payload capture and Kubernetes config diffs reveal payment service regressions and failed migrations that traditional APM tracing misses.

## Schema evolution in data pipelines: the engineer's guide

DevFeed: [Schema evolution in data pipelines: the engineer's guide](<https://devfeed.tech/articles/schema-evolution-in-data-pipelines-the-engineer-s-guide-80393.md>)

Original publisher: [Read original article](<https://dlthub.com/blog/schema-evolution-guide>)

Author: Aman Gupta

Published: 2026-06-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [DLT Hub](<https://devfeed.tech/sources/dlt-hub.md>)

Topics: [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [Pydantic](<https://devfeed.tech/topics/pydantic.md>), [DataOps](<https://devfeed.tech/topics/dataops.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [contracts](<https://devfeed.tech/tags/contracts.md>), [data-pipeline](<https://devfeed.tech/tags/data-pipeline.md>), [data-pipelines](<https://devfeed.tech/tags/data-pipelines.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [guide](<https://devfeed.tech/tags/guide.md>), [schema-evolution](<https://devfeed.tech/tags/schema-evolution.md>)

### AI overview

This practitioner's guide explains schema evolution in data pipelines, covering five common change scenarios and runtime policies for handling them. It demonstrates dlt's behavior with Python examples and describes data contracts, alerts, and CI checks for catching changes before they affect downstream consumers.

### Source excerpt

Schema evolution is a decision every data pipeline makes, and most tools make it silently. This post discusses the five common failure modes every data pipeline sees, how dlt handles them, and how you can decide runtime policies for schema evolution with data contracts.

## The secret to migrations

DevFeed: [The secret to migrations](<https://devfeed.tech/articles/the-secret-to-migrations-81466.md>)

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

Author: Stack

Published: 2026-06-02T05:36:19Z

Content type: tutorial

Language: en

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

Topics: [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [database-scalability](<https://devfeed.tech/topics/database-scalability.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [schema](<https://devfeed.tech/tags/schema.md>), [zero-downtime-deployment](<https://devfeed.tech/tags/zero-downtime-deployment.md>)

### AI overview

The article explains how Convex handles database schema changes while keeping deployments online. It recommends making a new field optional, migrating existing data in batches while ensuring new writes use the updated shape, and then making the field required. It also describes how Convex's atomic deployment of functions and schemas supports zero-downtime updates and why dropping fields requires extra work in its JSON document model.

### Source excerpt

This video explores how to handle database migrations in Convex while maintaining zero-downtime deployment. It breaks down the internal architecture of Convex deployments, explaining how functions and schemas operate as a single atomic unit. Developers will learn why Convex treats data as JSON documents rather than columnar tuples and how this design choice impacts schema modifications like dropping columns or changing data types.

## CodeQL zero to hero part 5: Debugging queries

DevFeed: [CodeQL zero to hero part 5: Debugging queries](<https://devfeed.tech/articles/codeql-zero-to-hero-part-5-debugging-queries-67458.md>)

Original publisher: [Read original article](<https://github.blog/security/vulnerability-research/codeql-zero-to-hero-part-5-debugging-queries/>)

Author: Sylwia Budzynska

Published: 2025-09-29T15:00:00Z

Content type: tutorial

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [debug tools](<https://devfeed.tech/topics/debug-tools.md>), [ide](<https://devfeed.tech/topics/ide.md>)

Tags: [ast](<https://devfeed.tech/tags/ast.md>), [attack-surface](<https://devfeed.tech/tags/attack-surface.md>), [code](<https://devfeed.tech/tags/code.md>), [code-scanning](<https://devfeed.tech/tags/code-scanning.md>), [codeql](<https://devfeed.tech/tags/codeql.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [github-security-lab](<https://devfeed.tech/tags/github-security-lab.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerability-research](<https://devfeed.tech/tags/vulnerability-research.md>)

### AI overview

This tutorial shows how to debug CodeQL queries using a Gradio unsafe deserialization example. It demonstrates creating a minimal CodeQL database, checking sources and sinks with quick evaluation, inspecting the AST, tracing partial path graphs, and adding taint steps to connect uploaded file data to a pickle.load sink. It also discusses narrowing taint propagation to reduce false positives.

### Source excerpt

Learn to debug and fix your CodeQL queries.

## Can your database do this? Ep 3: Zero-downtime, type-safe migrations

DevFeed: [Can your database do this? Ep 3: Zero-downtime, type-safe migrations](<https://devfeed.tech/articles/can-your-database-do-this-ep-3-zero-downtime-type-safe-migrations-81505.md>)

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

Author: Stack

Published: 2024-12-11T16:03:56Z

Content type: tutorial

Language: en

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

Topics: [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [convex](<https://devfeed.tech/tags/convex.md>), [database](<https://devfeed.tech/tags/database.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

A video demonstrates how Convex's migrations component runs complex, type-safe database migrations without interrupting live traffic, using a movie database project as an example.

### Source excerpt

Convex's migrations component makes it easy and safe to run complex database migrations without causing any interruption to live traffic.

## PostgreSQL to SQL Server Migration: Batch Load and Real-Time CDC

DevFeed: [PostgreSQL to SQL Server Migration: Batch Load and Real-Time CDC](<https://devfeed.tech/articles/postgresql-to-sql-server-migration-batch-load-and-real-time-cdc-82316.md>)

Original publisher: [Read original article](<https://estuary.dev/blog/postgres-to-sql-server>)

Author: Jeffrey Richman

Published: 2023-11-29T05:00:00Z

Content type: tutorial

Language: en

Sources: [Estuary](<https://devfeed.tech/sources/estuary.md>)

Topics: [sql-server](<https://devfeed.tech/topics/sql-server.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>)

Tags: [cdc](<https://devfeed.tech/tags/cdc.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [migration](<https://devfeed.tech/tags/migration.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [schema](<https://devfeed.tech/tags/schema.md>), [sql-server](<https://devfeed.tech/tags/sql-server.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

This guide compares offline CSV batch migration with continuous change data capture (CDC) for moving PostgreSQL data to SQL Server. It covers schema and object compatibility, data validation, connector setup, and cutover planning. CDC can reduce data-movement downtime, but schema conversion and application changes still require separate work.

### Source excerpt

Move PostgreSQL data to SQL Server using CSV batch loads or continuous CDC, with practical guidance for schema mapping, validation, and low-downtime cutover.

## GitHub availability this week

DevFeed: [GitHub availability this week](<https://devfeed.tech/articles/github-availability-this-week-70360.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/the-library/github-availability-this-week/>)

Author: Jesse Newland

Published: 2012-09-15T05:33:53Z

Content type: news

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [patroni](<https://devfeed.tech/topics/patroni.md>), [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [data-drift](<https://devfeed.tech/tags/data-drift.md>), [database](<https://devfeed.tech/tags/database.md>), [database-migration](<https://devfeed.tech/tags/database-migration.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [dynos](<https://devfeed.tech/tags/dynos.md>), [failover](<https://devfeed.tech/tags/failover.md>), [github](<https://devfeed.tech/tags/github.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [outages](<https://devfeed.tech/tags/outages.md>), [the-library](<https://devfeed.tech/tags/the-library.md>)

### AI overview

GitHub describes outages caused by database failovers, a cluster partition, and performance problems during database migration. The account details changes to its failover policy, plans to audit the cluster software, and work to improve buffer pool readiness and status-site capacity.

### Source excerpt

GitHub.com suffered two outages early this week that resulted in one hour and 46 minutes of downtime and another hour of significantly degraded performance. This is far below our standard...