#93: Updated README and migration script

This commit is contained in:
kdeng00
2024-07-09 19:08:03 -04:00
parent 7a0bfb80c4
commit 0e04c7910b
2 changed files with 15 additions and 14 deletions
+13 -12
View File
@@ -1,28 +1,29 @@
echo "Adding migrations..."
echo "Adding User migration"
~/.dotnet/tools/dotnet-ef migrations add User --context UserContext
dotnet dotnet-ef migrations add User --context UserContext
echo "Adding Album migration"
~/.dotnet/tools/dotnet-ef migrations add Album --context AlbumContext
dotnet dotnet-ef migrations add Album --context AlbumContext
echo "Adding Artist migration"
~/.dotnet/tools/dotnet-ef migrations add Artist --context ArtistContext
dotnet dotnet-ef migrations add Artist --context ArtistContext
echo "Adding Genre migration"
~/.dotnet/tools/dotnet-ef migrations add Genre --context GenreContext
dotnet dotnet-ef migrations add Genre --context GenreContext
echo "Adding Cover art migration"
~/.dotnet/tools/dotnet-ef migrations add CoverArt --context CoverArtContext
dotnet dotnet-ef migrations add CoverArt --context CoverArtContext
echo "Adding Song migration"
~/.dotnet/tools/dotnet-ef migrations add Song --context SongContext
dotnet dotnet-ef migrations add Song --context SongContext
echo "Updating migrations.."
echo "Updating User migration"
~/.dotnet/tools/dotnet-ef database update --context UserContext
dotnet dotnet-ef database update --context UserContext
echo "Updating Album migration"
~/.dotnet/tools/dotnet-ef database update --context AlbumContext
dotnet dotnet-ef database update --context AlbumContext
echo "Updating Artist migration"
~/.dotnet/tools/dotnet-ef database update --context ArtistContext
dotnet dotnet-ef database update --context ArtistContext
echo "Updating Genre migration"
~/.dotnet/tools/dotnet-ef database update --context GenreContext
dotnet dotnet-ef database update --context GenreContext
echo "Updating Cover art migration"
~/.dotnet/tools/dotnet-ef database update --context CoverArtContext
dotnet dotnet-ef database update --context CoverArtContext
echo "Updating Song migration"
~/.dotnet/tools/dotnet-ef database update --context SongContext
dotnet dotnet-ef database update --context SongContext