(2) If either a suit to foreclose or a proceeding under ORS 87.272 to 87.306 to foreclose a lien created by ORS 87.226 is not commenced in an appropriate court within 18 months after the notice of claim of lien is filed under ORS 87.242 or, if extended payment is provided and the terms thereof are stated in the notice of claim of lien, within six months after the expiration of the extended payment, the lien shall cease to exist. A lien shall not be continued in force for a longer time than two years from the time the claim of lien is filed under ORS 87.242 by an agreement to extend payment. [1975 c.648 §26; 1985 c.469 §6]