AiSkillz

AiSkillz is in preview: browse the catalogue now - skill downloads and subscriptions open soon.

← Back to skills
backendDownloadAny / model-agnosticLicense: My own work (all rights reserved)

Safe Postgres migrations

Created by CodeCraft LLC

Write, plan, and review safe PostgreSQL schema migrations for live systems (Supabase, raw SQL, EF Core, Prisma, Drizzle)

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.2.0 · updated 2026-10-16Report copyright infringement

Description

Write, plan, and review safe PostgreSQL schema migrations for live systems (Supabase, raw SQL, EF Core, Prisma, Drizzle) — expand/contract for zero-downtime changes, lock-aware DDL (lock_timeout, CREATE INDEX CONCURRENTLY, NOT VALID constraints then VALIDATE), adding columns and defaults, renames and type changes, batched backfills, enum changes, RLS and grants for new objects, transaction behavior of migration tools, testing on production-like data, and rollback/forward-fix plans. Use whenever the user writes or reviews a migration, alters a table in production, adds an index or constraint to a large table, renames or drops a column, or asks why a deploy locked the database.

#backend#postgres#migrations

Included with all-access

$9.00 value as a single download

AiSkillz is in preview: browse the catalogue now - skill downloads and subscriptions open soon.

All skills are included with the all-access subscription

Changelog

v1.2.0Oct 16, 2026Latest

Added

  • references/zero-downtime-playbook.md: a step-by-step zero-downtime playbook (expand-contract, NOT VALID constraints, batched backfills in a procedure) - merged from the former database-migrations skill.
v1.1.0Oct 3, 2026

Changed

  • Checked against the official documentation (October 2026).
  • Added Postgres 18 NOT NULL ... NOT VALID (and named NOT NULL constraints) as a lighter way to add NOT NULL.
  • Added Postgres 18 upgrade pitfalls: generated columns virtual by default, AFTER triggers running as the queuing role, MD5 passwords deprecated.
v1.0.1Oct 3, 2026

Changed

  • Added a trademark notice to the README.
v1.0.0Oct 2, 2026

Added

  • First release.