Base solution for your next web application
Open Closed

Change MultiTenancyEnabled from true to false - what will happen? #10381


User avatar
0
olmy90 created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 10.2
  • What is your product type (Angular or MVC)? Anglaur
  • What is product framework type (.net framework or .net core)? .NET CORE

If issue related with ABP Framework

  • What is ABP Framework version? 6.3

If issue is about UI

  • Which theme are you using? Standard

Hi,

I needs to change MultiTenancyEnabled from true to false to existing database - I've there 2 tenants - the default one (ID 1) - and my used one - tendant (ID 518) I only need tendant (ID 518) - so when I change it to MultiTenancyEnabled = false - should I delete then default one (ID 1) with SQL ? Any hints?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @olmy90

    By default AspNet Zero uses TenantId=1 when multi tenancy is disabled. So, in your case it will be better to delete, TenantId=1 and all its related records. Then update Tenant with ID=518 to 1 and all its related records.