Files
fm_be/migrations/20260701_mcf_cancelled.sql
2026-07-16 22:16:45 +07:00

16 lines
541 B
SQL

-- +goose Up
-- +goose StatementBegin
-- MCF: support "set No" cancellation — a draft that was never signed ("tidak jadi").
-- flight_id is added separately by 20260701_add_flight_id_to_mcf.sql.
ALTER TABLE maintenance_check_flights
ADD COLUMN cancelled_at DATETIME(3) NULL AFTER completed_by,
ADD COLUMN cancelled_by BINARY(16) NULL AFTER cancelled_at;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
ALTER TABLE maintenance_check_flights
DROP COLUMN cancelled_at,
DROP COLUMN cancelled_by;
-- +goose StatementEnd