Files
icarus/Scripts/Migrations/Linux/AddUpdate.sh
T
Kun Deng 562bc87822 #74: Add UserID to the Song model (#98)
* #74: Add UserID to the Song model

* #74: Added functionality to retrieve user id from the token

* #74: Songs will now contain the User Id when uploading

* Updated Readme and script to add migrations

* #74: Some cleanup
2024-06-19 15:41:55 -04:00

28 lines
1.0 KiB
Bash

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