Files
gnommoeditor/backend/migrations/014_extend_shared_assets.cjs
T

14 lines
435 B
JavaScript
Raw Normal View History

2026-04-11 09:24:21 +02:00
// Add dimension and MIME metadata captured at upload time
exports.up = (pgm) => {
pgm.addColumns('shared_assets', {
width: { type: 'integer' },
height: { type: 'integer' },
mime_type: { type: 'varchar(100)' },
original_filename: { type: 'varchar(500)' },
});
};
exports.down = (pgm) => {
pgm.dropColumns('shared_assets', ['width', 'height', 'mime_type', 'original_filename']);
};