Files
icarus/Scripts/Migrations/Linux/AddUpdate.sh
T
Kun Deng 71656aa940 #94: Saving the file type of cover art, but there is still some work to do (#100)
* #94: Saving the file type of cover art, but there is still some work to do

The filename of cover art is hard coded to have the png extension. Need to correct this

* #94: Added a TODO

* #94: Corrected file extension being saved in the db

* Cleanup

* Saving databasescripts
2024-06-21 20:26:44 -04:00

29 lines
1.2 KiB
Bash
Executable File

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