Base solution for your next web application
Open Closed

There is already an object named 'AbpAuditLogs' in the database. #10851


User avatar
0
sumitshah created
  • What is your product version- 11.0.0
  • What is your product type (Angular or MVC)- Angular 13
  • What is product framework type (.net framework or .net core)- .net core 6.0

We have upgraded our application to latest version( .net core(6.0) & angular (13)). We are trying update/migrate database so for this we tried to publish(run) migrator application it is giving following error. "There is already an object named 'AbpAuditLogs' in the database."

also we tried to run Infogroup.IDMS.EntityCoreFramework using Package Manager Console and by running cmd "update-database" which is giving follwing error- "There is already an object named 'AbpAuditLogs' in the database."

seems it is not trying to update database instead of this it is trying to create new tables related to ABP framework. Please let us know on this how can we proceed?


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

    Hi @sumitshah

    Maybe your migrations contains two different migration which tries to create AuditLogs table. Could you search your migrations and see if you have "AbpAuditLogs" text in more than one migration ?