Updated 'patterns' table to include 'pattern_name' column