Files

15 lines
625 B
JavaScript
Raw Permalink Normal View History

2026-04-11 09:24:21 +02:00
// Add richer slide spec fields used in detailed per-slide JSON (e.g. video5 spec/ directory).
exports.up = (pgm) => {
pgm.addColumns('slides', {
illustration_type: { type: 'varchar(50)' }, // glitch | transition | etc.
slide_target: { type: 'varchar(50)' }, // image | svg
symbols: { type: 'jsonb' }, // ["noise cloud", ...]
caption: { type: 'text' },
prompt: { type: 'text' }, // AI illustration prompt
});
};
exports.down = (pgm) => {
pgm.dropColumns('slides', ['illustration_type', 'slide_target', 'symbols', 'caption', 'prompt']);
};