Thursday, October 17, 2019

Re: django 2.0 to django 2.2 migration

This was tracked in https://code.djangoproject.com/ticket/30673 and fixed and 2.2.5[0]

Cheers,
Simon

[0] https://github.com/django/django/commit/1265a26b2fa3cbd73a2bccd91b700268bc28bc07

Le jeudi 17 octobre 2019 10:31:50 UTC-4, Sijoy Chirayath a écrit :
I am changing one of my application from djanog 2.0.6 to 2.2.2. I have 2 model files in two different app consists of model classes. Each model file i mapped to two different databases. Some of the model classes in both model files have the same name for dt_table in the meta class. So while doing makemigrations i am getting an error saying that 
dt_table tbl_activity_log is used by multiple models: usermanagement, master. But the same is working perfectly in django 2.0.6 version. Following are the error details. 
Please help.

tbl_activity_log: (models.E028) db_table 'tbl_activity_log' is used by multiple models: usermanagement.ActivityLog, master.ActivityLog.
tbl_audit_log: (models.E028) db_table 'tbl_audit_log' is used by multiple models: usermanagement.AuditLog, master.AuditLog.
tbl_business_groups: (models.E028) db_table 'tbl_business_groups' is used by multiple models: usermanagement.BusinessGroups, master.BusinessGroups.
tbl_categories: (models.E028) db_table 'tbl_categories' is used by multiple models: usermanagement.Categories, master.Categories.
tbl_client_configuration: (models.E028) db_table 'tbl_client_configuration' is used by multiple models: usermanagement.ClientConfiguration, master.ClientConfiguration.
tbl_client_groups: (models.E028) db_table 'tbl_client_groups' is used by multiple models: usermanagement.ClientGroups, master.ClientGroups.
tbl_countries: (models.E028) db_table 'tbl_countries' is used by multiple models: usermanagement.Countries, master.Countries.
tbl_divisions: (models.E028) db_table 'tbl_divisions' is used by multiple models: usermanagement.Divisions, master.Divisions.
tbl_domain_countries: (models.E028) db_table 'tbl_domain_countries' is used by multiple models: usermanagement.DomainCountries, master.DomainCountries.
tbl_domains: (models.E028) db_table 'tbl_domains' is used by multiple models: usermanagement.Domains, master.Domains.
tbl_form_type: (models.E028) db_table 'tbl_form_type' is used by multiple models: usermanagement.FormType, master.FormType.
tbl_forms: (models.E028) db_table 'tbl_forms' is used by multiple models: usermanagement.Forms, master.Forms.
tbl_legal_entities: (models.E028) db_table 'tbl_legal_entities' is used by multiple models: usermanagement.LegalEntities, master.LegalEntities.
tbl_organisation: (models.E028) db_table 'tbl_organisation' is used by multiple models: usermanagement.Organisation, master.Organisation.
tbl_reminder_settings: (models.E028) db_table 'tbl_reminder_settings' is used by multiple models: usermanagement.ReminderSettings, master.ReminderSettings.
tbl_service_providers: (models.E028) db_table 'tbl_service_providers' is used by multiple models: usermanagement.ServiceProviders, master.ServiceProviders.
tbl_timezones: (models.E028) db_table 'tbl_timezones' is used by multiple models: usermanagement.TimeZones, master.TimeZones.
tbl_units: (models.E028) db_table 'tbl_units' is used by multiple models: usermanagement.Units, master.Units.
tbl_user_category: (models.E028) db_table 'tbl_user_category' is used by multiple models: usermanagement.UserCategory, master.UserCategory.
tbl_users: (models.E028) db_table 'tbl_users' is used by multiple models: usermanagement.Users, master.Users.
tbl_verification_type: (models.E028) db_table 'tbl_verification_type' is used by multiple models: usermanagement.VerificationType, master.VerificationType.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/159ab704-3af4-4b6e-b2e9-55ca7e67a660%40googlegroups.com.

No comments:

Post a Comment