-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: report sorting on dashboard * chore: note * chore: feedback * chore: fix vrt's * Update packages/loot-core/migrations/1736640000000__custom_report_sorting.sql Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk> * chore: use new migration * Update packages/loot-core/migrations/1738491452000__sorting_rename.sql Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk> --------- Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>
- Loading branch information
Showing
8 changed files
with
48 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/loot-core/migrations/1738491452000__sorting_rename.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BEGIN TRANSACTION; | ||
|
||
ALTER TABLE custom_reports RENAME COLUMN sort_by TO sort_by_old; | ||
ALTER TABLE custom_reports ADD COLUMN sort_by TEXT DEFAULT 'desc'; | ||
|
||
UPDATE custom_reports SET sort_by = 'desc' where sort_by_old = 'Descending'; | ||
UPDATE custom_reports SET sort_by = 'asc' where sort_by_old = 'Ascending'; | ||
UPDATE custom_reports SET sort_by = 'budget' where sort_by_old = 'Budget'; | ||
UPDATE custom_reports SET sort_by = 'name' where sort_by_old = 'Name'; | ||
|
||
ALTER TABLE custom_reports DROP COLUMN sort_by_old; | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
category: Enhancements | ||
authors: [UnderKoen] | ||
--- | ||
|
||
Show sorting of reports on the dashboard |