Skip to content

Commit

Permalink
fix comment and space
Browse files Browse the repository at this point in the history
  • Loading branch information
artragis authored Jul 25, 2017
1 parent 57b9b01 commit a349680
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
def patch_create_suffix(original):
"""
Patch mysql creation policy to handle the "utf8mb4" facility. This appears tricky but it's necessary
due to the conception of "extended utf-8" in mysql. If we do not patch, the mysql backend is not even run !
due to the conception of "extended utf-8" in mysql. If we do not patch, the mysql backend cannot index
``VARCHAR(255)`` fields !
see <http://bd808.com/blog/2017/04/17/making-django-migrations-that-work-with-mysql-55-and-utf8mb4/>
for explanations
:param original: the original function we are patching
:return: the patched function
"""
def patch(self):
return original(self) + 'ROW_FORMAT=DYNAMIC'
return original(self) + ' ROW_FORMAT=DYNAMIC'
return patch


Expand Down

0 comments on commit a349680

Please sign in to comment.