Skip to content

References: Databases and Changing a Live Schema

  1. Relational database - Wikipedia - Explains tables, rows, columns and keys, and how relations link tables. It is the base model behind PostgreSQL and the chapter's schema examples.

  2. Schema migration - Wikipedia - Describes managing database changes as versioned migration files. It supports the chapter's sections on migration tools and ordering.

  3. Database transaction - Wikipedia - Covers transactions and the guarantees, known as ACID, that make a group of changes all-or-nothing. It backs the chapter's advice to put writes that must agree in one transaction.

  4. Designing Data-Intensive Applications - Martin Kleppmann - O'Reilly Media, 2017 - Kleppmann is known for clear diagrams of how data systems behave under failure, and for his chapter on schema evolution. It helps builders reason about changing live data.

  5. Refactoring Databases: Evolutionary Database Design - Scott W. Ambler and Pramod J. Sadalage - Addison-Wesley, 2006 - Ambler and Sadalage introduced a catalog of small, safe schema changes with a transition period where old and new shapes coexist. That idea is the core of safe migrations.

  6. PostgreSQL Tutorial - PostgreSQL Documentation - The official beginner tutorial on tables, queries, joins and transactions. A good way to read the SQL an agent writes.

  7. Evolutionary Database Design - Martin Fowler and Pramod Sadalage - Explains how teams change a database in small, version-controlled steps. It backs the chapter's rule that every schema change goes through a migration.

  8. Parallel Change - Danilo Sato on martinfowler.com - Describes the expand, migrate and contract pattern for changing an interface without breaking users. It applies directly to renaming or removing a column safely.

  9. Drizzle Migrations - Drizzle ORM - Explains how Drizzle generates and applies migrations from a TypeScript schema. It shows the migration tool many AI-built apps use.

  10. Use The Index, Luke - Markus Winand - A free guide to SQL indexing for developers. It explains when a database index helps and why a missing one makes queries slow.