ALTER TABLE memories
    ADD COLUMN IF NOT EXISTS expires_at TIMESTAMPTZ;

CREATE INDEX IF NOT EXISTS idx_memories_expires_at
    ON memories (expires_at)
    WHERE expires_at IS NOT NULL;
