14 lines
435 B
JavaScript
14 lines
435 B
JavaScript
|
|
// 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']);
|
||
|
|
};
|