I noticed recently that quite a few Jewish songs (e.g. Havah Nagila) tended to use certain scales. I thought they were normal minor scales, but then I played them on the piano and noticed that the step patterns were different.
The first scale has this step pattern (numbers represent semitones)
1312122 (C C# E F G G# A# C)
and the second has
1312131 (C C# E F G G# B C)
They differ only in the seventh tone.
What are these scales called?