Files
silo-server/migrations/sql/20260624124430_add_user_collection_display_query_definition.sql
T

13 lines
594 B
SQL
Raw Normal View History

-- +goose Up
-- Personal-collection display filtering is stored as a catalog QueryDefinition
-- fragment (filter-only: match + groups, with type / watched rules), not as
-- bespoke enum columns. This migration is intentionally separate from
-- 20260623184858 because that timestamp may already be applied on live
-- databases with the legacy watch_filter / media_filter DDL.
ALTER TABLE public.user_personal_collections
ADD COLUMN IF NOT EXISTS display_query_definition jsonb;
-- +goose Down
ALTER TABLE public.user_personal_collections
DROP COLUMN IF EXISTS display_query_definition;