mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
[Files Refactor] Rollback platform-agnostic paths (#2852)
* Rollback platform agnostic path storage * Add release note for database change
This commit is contained in:
@@ -438,8 +438,7 @@ func (qb *GalleryStore) FindByPath(ctx context.Context, p string) ([]*models.Gal
|
||||
foldersTable := folderTableMgr.table
|
||||
|
||||
basename := filepath.Base(p)
|
||||
dir, _ := path(filepath.Dir(p)).Value()
|
||||
pp, _ := path(p).Value()
|
||||
dir := filepath.Dir(p)
|
||||
|
||||
sq := dialect.From(table).LeftJoin(
|
||||
galleriesFilesJoinTable,
|
||||
@@ -459,7 +458,7 @@ func (qb *GalleryStore) FindByPath(ctx context.Context, p string) ([]*models.Gal
|
||||
fileFoldersTable.Col("path").Eq(dir),
|
||||
filesTable.Col("basename").Eq(basename),
|
||||
),
|
||||
foldersTable.Col("path").Eq(pp),
|
||||
foldersTable.Col("path").Eq(p),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user