Files
mercadodevida/project/migrations/033_product_expiration_date.js
2026-08-20 06:13:37 +02:00

11 lines
239 B
JavaScript

'use strict';
exports.up = async (pgm) => {
pgm.addColumn('catalog_products', {
expiration_date: { type: 'date', notNull: false },
});
};
exports.down = async (pgm) => {
pgm.dropColumn('catalog_products', 'expiration_date');
};