Updated Readme and script to add migrations

This commit is contained in:
kdeng00
2024-06-18 13:14:57 -04:00
parent cd5ee7d093
commit c6257da717
2 changed files with 20 additions and 16 deletions
+14 -13
View File
@@ -1,26 +1,27 @@
echo "Adding migrations..."
echo "Adding User migration"
dotnet ef migrations add User --context UserContext
echo "Adding Song migration"
dotnet ef migrations add Song --context SongContext
dotnet-ef migrations add User --context UserContext
echo "Adding Album migration"
dotnet ef migrations add Album --context AlbumContext
dotnet-ef migrations add Album --context AlbumContext
echo "Adding Artist migration"
dotnet ef migrations add Artist --context ArtistContext
dotnet-ef migrations add Artist --context ArtistContext
echo "Adding Genre migration"
dotnet ef migrations add Genre --context GenreContext
echo "Adding Year migration"
dotnet ef migrations add Year --context YearContext
dotnet-ef migrations add Genre --context GenreContext
echo "Adding Cover art migration"
dotnet ef migrations add CoverArt --context CoverArtContext
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 Song 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"
echo "Updating Year migration"
dotnet-ef database update --context GenreContext
echo "Updating Cover art migration"
dotnet ef database update --context SongContext
dotnet-ef database update --context CoverArtContext
echo "Updating Song migration"
dotnet-ef database update --context SongContext