Skip to content

Commit

Permalink
django: remove unused DatabaseWrapper.data_types_check_constraints (#441
Browse files Browse the repository at this point in the history
)

The proper name is data_type_check_constraints (no 's' after type) but
Spanner doesn't have check constraints anyway.

Co-authored-by: Emmanuel T Odeke <emmanuel@orijtech.com>
  • Loading branch information
timgraham and odeke-em committed Apr 25, 2020
1 parent b0afec5 commit 3345933
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions django_spanner/base.py
Expand Up @@ -52,11 +52,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
'TimeField': 'TIMESTAMP',
'UUIDField': 'STRING(32)',
}

# TODO: (@odeke-em) examine Spanner's data type constraints.
data_types_check_constraints = {
}

operators = {
'exact': '= %s',
'iexact': 'REGEXP_CONTAINS(%s, %%%%s)',
Expand Down

0 comments on commit 3345933

Please sign in to comment.