Context: Django 1.7; MySQL 5.6.23; Running on AWS (not sure of exact Linux OS version)
I have a Django 1.7 project. When I do the initial makemigrations to build my DB locally on my Windows laptop, I get tables that are prefixed with my app name like this:
myapp_person (for Django
class Person(models.Model)
)myapp_personmap (for Django
class PersonMap(models.Model)
)
When I makemigrations & migrate to the AWS Linux server, the tables are named like this:
MyApp_person
MyApp_personmap
Notice the unexpected CamelCase for the app-name prefix and the expected lower case for the rest of the table names.
My questions:
- What controls the appname prefix to the tables (e.g. "myapp_" in "myapp_person")?
- How can I get the migration to use all lowercase on AWS like it does locally on my Windows laptop?