(self, field, field_db_params)
| 940 | ) |
| 941 | |
| 942 | def _field_db_check(self, field, field_db_params): |
| 943 | # Always check constraints with the same mocked column name to avoid |
| 944 | # recreating constraints when the column is renamed. |
| 945 | check_constraints = self.connection.data_type_check_constraints |
| 946 | data = field.db_type_parameters(self.connection) |
| 947 | data["column"] = "__column_name__" |
| 948 | try: |
| 949 | return check_constraints[field.get_internal_type()] % data |
| 950 | except KeyError: |
| 951 | return None |
| 952 | |
| 953 | def _alter_field( |
| 954 | self, |
no test coverage detected