Support for data skipping indexes

This commit is contained in:
Itai Shirav 2020-06-06 21:21:18 +03:00
parent 4be1b0437f
commit aaa1038a70

View File

@ -127,7 +127,7 @@ class MigrationsTestCase(unittest.TestCase):
with self.assertRaises(ServerError):
self.database.insert([ModelWithConstraints(f1=99, f2='x')])
if self.database.server_version < (20, 1, 2, 4):
if self.database.server_version >= (20, 1, 2, 4):
# Creating indexes
self.database.migrate('tests.sample_migrations', 18)
self.assertTrue(self.table_exists(ModelWithIndex))