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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user