跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/ccarvalho-eng/codex-elixir-phoenix/elixir-phoenix-migrations

Codex Ecto Migration Planning for a PostgreSQL Column Backfill

Split a Phoenix schema change into an additive migration, application compatibility, resumable backfill, and constraint verification.

中文

Install in Codex

Use a Phoenix/Ecto project and a local PostgreSQL test database with synthetic data.

  1. Copy the pinned `skills/elixir-phoenix-migrations/` directory into `.agents/skills/elixir-phoenix-migrations/` in the project.
  2. Provide the Ecto schema, current migrations, and target field constraints, and review the migration plan first.

Example task

Add `display_label` to a local `products` table with 20 synthetic rows. Backfill from `name` in ID ranges, pause midway, resume from the cursor, and count remaining nulls.

What to check

A resumed run touches only pending rows, and a zero null count is the evidence for evaluating the required constraint.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

How can the backfill avoid rewriting completed rows?

Filter on `display_label IS NULL`, record the processed ID range, and verify the remaining null count.

Related skills from this repository

  • Codex Search and Document Known Phoenix Solutions
  • Codex Document New Elixir Modules and Public Functions
  • Codex Test Idempotent Elixir Background Jobs with Oban
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯