Files
icarus/Scripts/Migrations/Linux/AddUpdate.sh
T
KD dcb51448aa tsk-76: Added model and context for AccessLevel (#108)
* tsk-76: Added model and context for AccessLevel

* Formatted code

* AccessLevel migrations are working

* minor formatting

* tsk-#76: Saving AccessLevel when uploading song

* tsk-#76: Added endpoints

* tsk-#76: Warning fix

* tsk-#76: Adding more controller code

* Functionality to modify access levels is operational

* Formatting

* tsk-#76: Added functionality

* tsk-#76: Formatting code

* tsk-#76: Adding more code

* tsk-#76: Formatting
2025-03-11 21:45:32 -04:00

34 lines
1.3 KiB
Bash
Executable File

echo "Adding migrations..."
echo "Adding User migration"
dotnet dotnet-ef migrations add User --context UserContext
echo "Adding Album migration"
dotnet dotnet-ef migrations add Album --context AlbumContext
echo "Adding Artist migration"
dotnet dotnet-ef migrations add Artist --context ArtistContext
echo "Adding Genre migration"
dotnet dotnet-ef migrations add Genre --context GenreContext
echo "Adding Cover art migration"
dotnet dotnet-ef migrations add CoverArt --context CoverArtContext
echo "Adding Song migration"
dotnet dotnet-ef migrations add Song --context SongContext
echo "Adding AccessLevel migration"
dotnet dotnet-ef migrations add AccessLevel --context AccessLevelContext
echo "Updating migrations.."
echo "Updating User migration"
dotnet dotnet-ef database update --context UserContext
echo "Updating Album migration"
dotnet dotnet-ef database update --context AlbumContext
echo "Updating Artist migration"
dotnet dotnet-ef database update --context ArtistContext
echo "Updating Genre migration"
dotnet dotnet-ef database update --context GenreContext
echo "Updating Cover art migration"
dotnet dotnet-ef database update --context CoverArtContext
echo "Updating Song migration"
dotnet dotnet-ef database update --context SongContext
echo "Updating AccessLevel migration"
dotnet dotnet-ef database update --context AccessLevelContext