55
66
77class DatabaseFeatures (PostgresDatabaseFeatures ):
8- minimum_database_version = (23 , 2 )
8+ minimum_database_version = (24 , 1 )
99
1010 # Cloning databases doesn't speed up tests.
1111 # https://github.com/cockroachdb/django-cockroachdb/issues/206
@@ -75,10 +75,6 @@ def introspected_field_types(self):
7575 'virtual' : None ,
7676 }
7777
78- @cached_property
79- def is_cockroachdb_24_1 (self ):
80- return self .connection .cockroachdb_version >= (24 , 1 )
81-
8278 @cached_property
8379 def is_cockroachdb_24_3 (self ):
8480 return self .connection .cockroachdb_version >= (24 , 3 )
@@ -189,6 +185,10 @@ def django_test_expected_failures(self):
189185 # new primary key in same transaction
190186 'schema.tests.SchemaTests.test_add_auto_field' ,
191187 'schema.tests.SchemaTests.test_autofield_to_o2o' ,
188+ # USING cast required: https://github.com/cockroachdb/cockroach/issues/82416#issuecomment-2029803229
189+ 'schema.tests.SchemaTests.test_alter_text_field_to_date_field' ,
190+ 'schema.tests.SchemaTests.test_alter_text_field_to_datetime_field' ,
191+ 'schema.tests.SchemaTests.test_alter_text_field_to_time_field' ,
192192 # incompatible COALESCE expressions: unsupported binary operator:
193193 # <int> * <int> (desired <decimal>):
194194 # https://github.com/cockroachdb/cockroach/issues/73587
@@ -210,13 +210,6 @@ def django_test_expected_failures(self):
210210 # concat(): unknown signature: concat(string, int2) (desired <string>)
211211 'db_functions.text.test_concat.ConcatTests.test_concat_non_str' ,
212212 })
213- if self .is_cockroachdb_24_1 :
214- # USING cast required: https://github.com/cockroachdb/cockroach/issues/82416#issuecomment-2029803229
215- expected_failures .update ({
216- 'schema.tests.SchemaTests.test_alter_text_field_to_date_field' ,
217- 'schema.tests.SchemaTests.test_alter_text_field_to_datetime_field' ,
218- 'schema.tests.SchemaTests.test_alter_text_field_to_time_field' ,
219- })
220213 if self .is_cockroachdb_25_1 :
221214 expected_failures .update ({
222215 # expected STORED COMPUTED COLUMN expression to have type
0 commit comments