-- Fix planning category -> item loading and category-only budget lines
ALTER TABLE projected_items ADD COLUMN category_id INT NULL AFTER month_key;
ALTER TABLE projected_items MODIFY item_id INT NULL;
ALTER TABLE projected_items ADD INDEX idx_projected_cat (category_id);
