forked from boos/BoosAPI
44af9a91cf
- Introduced `isPinned` and `sortOrder` fields in the `accounts` and `sites` tables to allow users to pin and sort their accounts and sites. - Updated API routes to handle pinning and sorting operations for accounts and sites. - Enhanced the frontend to support sorting by balance and custom order, as well as toggling the pin status of accounts and sites. - Added tests for sorting and reordering logic to ensure correct functionality. - Updated documentation to reflect changes in token management and new features.
8 lines
339 B
SQL
8 lines
339 B
SQL
ALTER TABLE `sites` ADD COLUMN `is_pinned` integer DEFAULT false;
|
|
--> statement-breakpoint
|
|
ALTER TABLE `sites` ADD COLUMN `sort_order` integer DEFAULT 0;
|
|
--> statement-breakpoint
|
|
ALTER TABLE `accounts` ADD COLUMN `is_pinned` integer DEFAULT false;
|
|
--> statement-breakpoint
|
|
ALTER TABLE `accounts` ADD COLUMN `sort_order` integer DEFAULT 0;
|