aau-giraf / web-api

The backend API for GIRAF — a .NET-core project written in C#.
GNU General Public License v3.0
2 stars 5 forks source link

Unable to add roles after dropping database #231

Closed pannaAwesome closed 2 years ago

pannaAwesome commented 2 years ago

Description

When you need to create the database from scratch either when dropping it or setting up the repository, you are unable to add data to the database because the roles needed for the different users are not being created and therefore the initializer cannot add users to the database.

To Reproduce Steps to reproduce the behavior run these commands:

  1. dotnet-ef database drop
  2. dotnet-ef database update
  3. dotnet run --sample-run

Expected behavior \ Able to add data to the database after creating it from scratch

Actual behavior and screenshots \ Unable to add data to the database after creating it from scratch

Sub Tasks

Create your own subtask issues on GitHub and link them here in a list.