django-cities-light icon indicating copy to clipboard operation
django-cities-light copied to clipboard

Missing table error on migration

Open GabrielDumbrava opened this issue 6 years ago • 2 comments

When running migrate I get an error saying that the Country table does not exist, but it's looking for cities_light_country instead of my custom [APP_NAME]_country as if it's not taking into consideration the CITIES_LIGHT_APP_NAME setting.

Operations to perform:
  Apply all migrations: cities_light
Running migrations:
  Applying cities_light.0007_make_country_name_not_unique...Traceback (most recent call last):
  File "manage.py", line 15, in <module>
...
jango.db.utils.ProgrammingError: (1146, "Table 'DATABASE_NAME.cities_light_country' doesn't exist")

I am using django-cities-light==3.4.0 after upgrading from django-cities-light==3.3.0

GabrielDumbrava avatar Mar 28 '18 08:03 GabrielDumbrava

did you solve this issue?

DanielGraham123 avatar Apr 05 '21 08:04 DanielGraham123

Considering this is from 2018 I was supposing it has been fixed in the meantime. I don't remember what workaround I used at that time ...

GabrielDumbrava avatar Apr 05 '21 09:04 GabrielDumbrava