django 2.0 to django 2.2 migration

157 views
Skip to first unread message

Sijoy Chirayath

unread,
Oct 17, 2019, 10:31:50 AM10/17/19
to Django users
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.

Simon Charette

unread,
Oct 17, 2019, 12:35:46 PM10/17/19
to Django users

Sijoy Chirayath

unread,
Oct 18, 2019, 1:14:05 AM10/18/19
to Django users
Thank you very much for your quick support.
Reply all
Reply to author
Forward
0 new messages