What's the corresponding test to Two way Mixed ANOVA when the DV is ordinal?

I have two treatment groups, 14 time points and the DV is an ordinal one: pain rated on a scale.

What would be an appropriate test to use?

Thank you