mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Stash rating system (#2830)
* add rating100 fields to represent rating range 1-100 * deprecate existing (1-5) rating fields * add half- and quarter-star options for rating system * add decimal rating system option Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
6
pkg/sqlite/migrations/40_newratings.up.sql
Normal file
6
pkg/sqlite/migrations/40_newratings.up.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
UPDATE `scenes` SET `rating` = (`rating` * 20) WHERE `rating` < 6;
|
||||
UPDATE `galleries` SET `rating` = (`rating` * 20) WHERE `rating` < 6;
|
||||
UPDATE `images` SET `rating` = (`rating` * 20) WHERE `rating` < 6;
|
||||
UPDATE `movies` SET `rating` = (`rating` * 20) WHERE `rating` < 6;
|
||||
UPDATE `performers` SET `rating` = (`rating` * 20) WHERE `rating` < 6;
|
||||
UPDATE `studios` SET `rating` = (`rating` * 20) WHERE `rating` < 6;
|
||||
Reference in New Issue
Block a user