nexa-server / database /migration_settings.sql
dazat-knight's picture
Deploy v14 - Top-level ZeroGPU compliance
fb15d01
Raw History Blame Contribute Delete
257 Bytes
-- 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;