1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #24846 -- Added support to MySQL SchemaEditor for all blob/text data types

This commit is contained in:
Adam Chainz
2015-05-24 11:16:21 +01:00
committed by Tim Graham
parent 00e8e514e1
commit e60cce4e40
4 changed files with 40 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
from django.db import models
from django.db.models.fields.related import (
RECURSIVE_RELATIONSHIP_CONSTANT, ManyRelatedObjectsDescriptor,
ManyToManyField, ManyToManyRel, RelatedField,
@@ -56,3 +57,11 @@ class CustomManyToManyField(RelatedField):
class InheritedManyToManyField(ManyToManyField):
pass
class MediumBlobField(models.BinaryField):
"""
A MySQL BinaryField that uses a different blob size.
"""
def db_type(self, connection):
return 'MEDIUMBLOB'