Add support for uploading and assigning custom SVG icons to libraries… (#1788)

* Add support for uploading and assigning custom SVG icons to libraries and shelves

* Add few default icons
This commit is contained in:
Aditya Chandel
2025-12-07 15:16:22 -07:00
committed by GitHub
parent 04b9f88510
commit ad0a99bcbc
74 changed files with 1613 additions and 171 deletions
@@ -0,0 +1,13 @@
ALTER TABLE library
ADD COLUMN IF NOT EXISTS icon_type VARCHAR(100) NOT NULL DEFAULT 'PRIME_NG';
ALTER TABLE magic_shelf
ADD COLUMN IF NOT EXISTS icon_type VARCHAR(100) NOT NULL DEFAULT 'PRIME_NG';
ALTER TABLE shelf
ADD COLUMN IF NOT EXISTS icon_type VARCHAR(100) NOT NULL DEFAULT 'PRIME_NG';
UPDATE library SET icon_type = 'PRIME_NG' WHERE icon_type IS NULL;
UPDATE magic_shelf SET icon_type = 'PRIME_NG' WHERE icon_type IS NULL;
UPDATE shelf SET icon_type = 'PRIME_NG' WHERE icon_type IS NULL;