# create an empty migration file
$ ./manage.py makemigrations --empty --name convert_to_utf8mb4 your_app
in your_app/migrations/0002_convert_to_utf8mb4.py
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('your_app', '0001_initial'),
]
operations = [
migrations.RunSQL(
'ALTER TABLE app_repostarring CHANGE repo_description repo_description VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
),
]
ref:
https://docs.djangoproject.com/en/dev/ref/migration-operations/#runsql