diff --git a/db/migrations/20241209172239_duplicate.go b/db/migrations/20241209172239_duplicate.go deleted file mode 100644 index bcdba0495..000000000 --- a/db/migrations/20241209172239_duplicate.go +++ /dev/null @@ -1,25 +0,0 @@ -package migrations - -import ( - "context" - "database/sql" - "github.com/pressly/goose/v3" -) - -func init() { - goose.AddMigrationContext(upDuplicate, downDuplicate) -} - -func upDuplicate(ctx context.Context, tx *sql.Tx) error { - _, err := tx.Exec(` -alter table media_file - add is_duplicate bool not null default false; - -`) - return err -} - -func downDuplicate(ctx context.Context, tx *sql.Tx) error { - // This code is executed when the migration is rolled back. - return nil -} diff --git a/db/migrations/20241227222849_duplicate.go b/db/migrations/20241227222849_duplicate.go new file mode 100644 index 000000000..6121ad7ef --- /dev/null +++ b/db/migrations/20241227222849_duplicate.go @@ -0,0 +1,25 @@ +package migrations + +import ( + "context" + "database/sql" + "github.com/pressly/goose/v3" +) + +func init() { + goose.AddMigrationContext(upDuplicate, downDuplicate) +} + +func upDuplicate(ctx context.Context, tx *sql.Tx) error { + _, err := tx.Exec(` +alter table media_file + add is_duplicate bool not null default false; + +`) + return err +} + +func downDuplicate(ctx context.Context, tx *sql.Tx) error { + // This code is executed when the migration is rolled back. + return nil +} \ No newline at end of file diff --git a/server/subsonic/api.go b/server/subsonic/api.go index 5471c8c66..dfa945086 100644 --- a/server/subsonic/api.go +++ b/server/subsonic/api.go @@ -158,7 +158,6 @@ func (api *Router) routes() http.Handler { h(r, "getLyricsBySongId", api.GetLyricsBySongId) hr(r, "stream", api.Stream) hr(r, "download", api.Download) - hr(r, "delete", api.Delete) }) r.Group(func(r chi.Router) { // configure request throttling diff --git a/ui/src/common/DeleteButton.js b/ui/src/common/DeleteButton.jsx similarity index 100% rename from ui/src/common/DeleteButton.js rename to ui/src/common/DeleteButton.jsx diff --git a/ui/src/dialogs/DeleteMenuDialog.js b/ui/src/dialogs/DeleteMenuDialog.jsx similarity index 100% rename from ui/src/dialogs/DeleteMenuDialog.js rename to ui/src/dialogs/DeleteMenuDialog.jsx