Files
mercadodevida/project/migrations/039_order_courier.js
2026-08-21 12:27:13 +02:00

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`);
};