testTableStructureMigration: be more independant of mariadb version

With 12f110d4 (testTableStructureMigration: update test after
mariadb 10.3.38, 2023-02-22) we changed the test to support mariadb >=
10.3.38 but it broke the test under 10.3.35.

This makes the test support both 10.3.35 and 10.3.38.
10 jobs for for_testrunner_1 in 0 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:47:49

passed ERP5.CodingStyleTest-TestRunner1

01:14:21

failed ERP5.PerformanceTest-Master

00:26:54

passed ERP5.PerformanceTest-TestRunner1

00:26:52

failed ERP5.UnitTest-Master

02:40:26

failed ERP5.UnitTest-TestRunner1

03:13:23

failed ERP5.UnitTest-Zope2

02:29:04

passed SlapOS.Eggs.UnitTest-Master.Python2

00:16:36

passed Wendelin.UnitTest-Master

00:56:47

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:19