10 lines
512 B
SQL
10 lines
512 B
SQL
-- Migration: actual event timestamps for orders and order lines.
|
|
-- (The scheduled slot time remains delivery_slot_info.delivery_time via orders.slot_id;
|
|
-- order_items.is_packaged / order_status.is_delivered stay as the boolean flags.)
|
|
--
|
|
-- NOTE: SQLite has no `ADD COLUMN IF NOT EXISTS`, so this file is not re-runnable;
|
|
-- rely on the migration journal to apply it once.
|
|
|
|
ALTER TABLE `orders` ADD COLUMN `delivered_at` text;
|
|
--> statement-breakpoint
|
|
ALTER TABLE `order_items` ADD COLUMN `packaged_at` text;
|