Saving databasescripts
This commit is contained in:
Regular → Executable
+13
-12
@@ -1,27 +1,28 @@
|
|||||||
echo "Adding migrations..."
|
echo "Adding migrations..."
|
||||||
|
|
||||||
echo "Adding User migration"
|
echo "Adding User migration"
|
||||||
dotnet-ef migrations add User --context UserContext
|
~/.dotnet/tools/dotnet-ef migrations add User --context UserContext
|
||||||
echo "Adding Album migration"
|
echo "Adding Album migration"
|
||||||
dotnet-ef migrations add Album --context AlbumContext
|
~/.dotnet/tools/dotnet-ef migrations add Album --context AlbumContext
|
||||||
echo "Adding Artist migration"
|
echo "Adding Artist migration"
|
||||||
dotnet-ef migrations add Artist --context ArtistContext
|
~/.dotnet/tools/dotnet-ef migrations add Artist --context ArtistContext
|
||||||
echo "Adding Genre migration"
|
echo "Adding Genre migration"
|
||||||
dotnet-ef migrations add Genre --context GenreContext
|
~/.dotnet/tools/dotnet-ef migrations add Genre --context GenreContext
|
||||||
echo "Adding Cover art migration"
|
echo "Adding Cover art migration"
|
||||||
dotnet-ef migrations add CoverArt --context CoverArtContext
|
~/.dotnet/tools/dotnet-ef migrations add CoverArt --context CoverArtContext
|
||||||
echo "Adding Song migration"
|
echo "Adding Song migration"
|
||||||
dotnet-ef migrations add Song --context SongContext
|
~/.dotnet/tools/dotnet-ef migrations add Song --context SongContext
|
||||||
|
|
||||||
echo "Updating migrations.."
|
echo "Updating migrations.."
|
||||||
echo "Updating User migration"
|
echo "Updating User migration"
|
||||||
dotnet-ef database update --context UserContext
|
~/.dotnet/tools/dotnet-ef database update --context UserContext
|
||||||
echo "Updating Album migration"
|
echo "Updating Album migration"
|
||||||
dotnet-ef database update --context AlbumContext
|
~/.dotnet/tools/dotnet-ef database update --context AlbumContext
|
||||||
echo "Updating Artist migration"
|
echo "Updating Artist migration"
|
||||||
dotnet-ef database update --context ArtistContext
|
~/.dotnet/tools/dotnet-ef database update --context ArtistContext
|
||||||
echo "Updating Genre migration"
|
echo "Updating Genre migration"
|
||||||
dotnet-ef database update --context GenreContext
|
~/.dotnet/tools/dotnet-ef database update --context GenreContext
|
||||||
echo "Updating Cover art migration"
|
echo "Updating Cover art migration"
|
||||||
dotnet-ef database update --context CoverArtContext
|
~/.dotnet/tools/dotnet-ef database update --context CoverArtContext
|
||||||
echo "Updating Song migration"
|
echo "Updating Song migration"
|
||||||
dotnet-ef database update --context SongContext
|
~/.dotnet/tools/dotnet-ef database update --context SongContext
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
delete from Song;
|
|
||||||
delete from Album;
|
delete from Album;
|
||||||
delete from Artist;
|
delete from Artist;
|
||||||
|
delete from CoverArt;
|
||||||
delete from Genre;
|
delete from Genre;
|
||||||
delete from CoverArt;
|
delete from CoverArt;
|
||||||
|
delete from Song;
|
||||||
|
delete from User;
|
||||||
|
|||||||
Reference in New Issue
Block a user