feat(TICKET-LOGO): completed feature
This commit is contained in:
18
project/migrations/063_pos_store_logo_url.js
Normal file
18
project/migrations/063_pos_store_logo_url.js
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
exports.shorthands = undefined;
|
||||
|
||||
exports.up = (pgm) => {
|
||||
pgm.addColumns('pos_stores', {
|
||||
logo_url: {
|
||||
type: 'text',
|
||||
notNull: false,
|
||||
default: null,
|
||||
},
|
||||
});
|
||||
pgm.addCommentOnColumn('pos_stores', 'logo_url', 'URL del logo custom para tickets TPV. Si es null, se usa el logo default /images/logo-main.png');
|
||||
};
|
||||
|
||||
exports.down = (pgm) => {
|
||||
pgm.dropColumns('pos_stores', ['logo_url']);
|
||||
};
|
||||
Reference in New Issue
Block a user