hassanhabib / OtripleS

This is an open source schooling system, dedicated to provide a better experience for schools needing a management and communication and tutoring system all in one place. This project is aiming toward directing all the software development funds and hours to families in need, the idea of the project is to allow schools to use the system as long as the software funds in the school are directed towards financially disadvantaged families and students.
326 stars 167 forks source link

There is already an object named 'AspNetRoles' in the database. #2642

Closed walidaslam7 closed 1 year ago

walidaslam7 commented 1 year ago

Whenever Run the migration and database update, I get this issue in the Package Manager Console.

"There is already an object named 'AspNetRoles' in the database. "

Following steps I have attempted to resolve this issue till now:

  1. Tried to add new migrations and then update the database command.
  2. Deleted the whole migrations folder and then repeated step-1.
  3. Tried to change the database name but it didn't work out for me