feat(F-086): completed feature
This commit is contained in:
11
project/migrations/033_product_expiration_date.js
Normal file
11
project/migrations/033_product_expiration_date.js
Normal file
@@ -0,0 +1,11 @@
|
||||
'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');
|
||||
};
|
||||
Reference in New Issue
Block a user