5
5
6
6
7
7
class DatabaseFeatures (PostgresDatabaseFeatures ):
8
- minimum_database_version = (23 , 2 )
8
+ minimum_database_version = (24 , 1 )
9
9
10
10
# Cloning databases doesn't speed up tests.
11
11
# https://github.com/cockroachdb/django-cockroachdb/issues/206
@@ -75,10 +75,6 @@ def introspected_field_types(self):
75
75
'virtual' : None ,
76
76
}
77
77
78
- @cached_property
79
- def is_cockroachdb_24_1 (self ):
80
- return self .connection .cockroachdb_version >= (24 , 1 )
81
-
82
78
@cached_property
83
79
def is_cockroachdb_24_3 (self ):
84
80
return self .connection .cockroachdb_version >= (24 , 3 )
@@ -181,6 +177,10 @@ def django_test_expected_failures(self):
181
177
# new primary key in same transaction
182
178
'schema.tests.SchemaTests.test_add_auto_field' ,
183
179
'schema.tests.SchemaTests.test_autofield_to_o2o' ,
180
+ # USING cast required: https://github.com/cockroachdb/cockroach/issues/82416#issuecomment-2029803229
181
+ 'schema.tests.SchemaTests.test_alter_text_field_to_date_field' ,
182
+ 'schema.tests.SchemaTests.test_alter_text_field_to_datetime_field' ,
183
+ 'schema.tests.SchemaTests.test_alter_text_field_to_time_field' ,
184
184
# incompatible COALESCE expressions: unsupported binary operator:
185
185
# <int> * <int> (desired <decimal>):
186
186
# https://github.com/cockroachdb/cockroach/issues/73587
@@ -202,13 +202,6 @@ def django_test_expected_failures(self):
202
202
# concat(): unknown signature: concat(string, int2) (desired <string>)
203
203
'db_functions.text.test_concat.ConcatTests.test_concat_non_str' ,
204
204
})
205
- if self .is_cockroachdb_24_1 :
206
- # USING cast required: https://github.com/cockroachdb/cockroach/issues/82416#issuecomment-2029803229
207
- expected_failures .update ({
208
- 'schema.tests.SchemaTests.test_alter_text_field_to_date_field' ,
209
- 'schema.tests.SchemaTests.test_alter_text_field_to_datetime_field' ,
210
- 'schema.tests.SchemaTests.test_alter_text_field_to_time_field' ,
211
- })
212
205
if self .is_cockroachdb_25_1 :
213
206
expected_failures .update ({
214
207
# expected STORED COMPUTED COLUMN expression to have type
0 commit comments