feat(F-113): completed feature
This commit is contained in:
12
project/migrations/039_order_courier.js
Normal file
12
project/migrations/039_order_courier.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Courier used to ship an order. Populated when an admin marks the order as
|
||||
* SHIPPED; shown in the customer "Enviado" email alongside the tracking number.
|
||||
* @param {import('node-pg-migrate').MigrationBuilder} pgm
|
||||
*/
|
||||
export const up = (pgm) => {
|
||||
pgm.sql(`ALTER TABLE orders_orders ADD COLUMN IF NOT EXISTS courier varchar(120) NULL`);
|
||||
};
|
||||
|
||||
export const down = (pgm) => {
|
||||
pgm.sql(`ALTER TABLE orders_orders DROP COLUMN IF EXISTS courier`);
|
||||
};
|
||||
Reference in New Issue
Block a user