Spaces:
Runtime error
Runtime error
File size: 257 Bytes
fb15d01 | 1 2 3 4 5 6 7 | -- Migration to support Category archiving
ALTER TABLE public.categories
ADD COLUMN IF NOT EXISTS is_archived BOOLEAN DEFAULT FALSE;
-- Ensure existing categories are not archived
UPDATE public.categories SET is_archived = FALSE WHERE is_archived IS NULL;
|