Skip to content

Commit

Permalink
Redesigned database
Browse files Browse the repository at this point in the history
- removed trackinfo table
- deleting directory is now faster
  • Loading branch information
tayal007 committed Nov 27, 2016
1 parent 52f912c commit 5ab5431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beatboxer/DataBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void CreateDataBase() {
+ " set AlbumId = (select newid from id); "
+ " insert into album values (AlbumId,newalbum); "
+ "end if; "
+ "update track set trackname = newtrack,genre = newgenre,track.artistid = track.ArtistId,albumid = AlbumId where track.trackid = TrackId; "
+ "update track set trackname = newtrack,genre = newgenre,track.artistid = ArtistId,track.albumid = AlbumId where track.trackid = TrackId; "
+ "END");
check.execute("CREATE FUNCTION searchartist(name varchar(50)) RETURNS int(11) "
+ "BEGIN "
Expand Down

0 comments on commit 5ab5431

Please sign in to comment.