// The deck a presentation actually is. // // Markdown stays the readable artifact — it is what Word renders and what a // text edit edits — but it cannot express a two-column comparison, a callout, or // a figure placed beside its bullets, so a deck round-tripped through markdown // loses the layout the model chose. Storing the deck keeps those choices, and // the markdown is serialised from it. // // Null for an article, and for every presentation written before this existed; // those still render from their markdown. exports.up = pgm => pgm.sql(` ALTER TABLE user_resources ADD COLUMN IF NOT EXISTS deck JSONB; `); exports.down = pgm => pgm.sql(` ALTER TABLE user_resources DROP COLUMN IF EXISTS deck; `);