~/talk

Migrating your Database with Phinx

Talkat PHP Tour Luxembourg 2015 · 2015-05-12..05-13· [php, databases]
links:none on file
slides:none on file

Phinx is a standalone PHP database migration tool that uses timestamps-based filenames and a PHP DSL to create, run and reverse migrations. The demo builds a simple guestbook: creates a posts table with id and timestamps, adds a unique index to enforce one-signature-per-name, then rolls back and replays migrations against MySQL and PostgreSQL to prove portability. Project stats: ~32 releases, ~350k downloads, ~70 contributors, default in CakePHP 3.0. The new change method makes many migrations reversible automatically.

AI-written summary · about

  1. 0:00Introduction to Phinx
  2. 2:27Why Phinx was created
  3. 4:13Benefits of Phinx
  4. 5:40Demo setup and overview
  5. 8:00Creating a database and tables
  6. 10:29Writing a Phinx migration
  7. 13:56Running migrations and results
  8. 15:20Rolling back migrations
  9. 16:46Adding unique indexes
  10. 17:30Reversible migrations
  11. 20:17Migrating to PostgreSQL
  12. 22:39Phinx future updates
  13. 24:05Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.