13 lines
453 B
JavaScript
13 lines
453 B
JavaScript
/**
|
|
* 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`);
|
|
};
|