refactor: implement full projects CRUD, move icons onto tag schema

- Remove priority field and sorting, switch to updated_at DESC
- Add icon field to tags table
- Split project description into name and short_description
- Implement full CRUD for projects (create, update, delete)
- Add admin stats endpoint (project counts by status)
This commit is contained in:
2026-01-06 19:39:13 -06:00
parent cacee9ba14
commit 2251bd276c
31 changed files with 1864 additions and 994 deletions
@@ -0,0 +1,9 @@
-- Drop priority column and its index
DROP INDEX IF EXISTS idx_projects_priority;
ALTER TABLE projects DROP COLUMN priority;
-- Rename title to name
ALTER TABLE projects RENAME COLUMN title TO name;
-- Add short_description field
ALTER TABLE projects ADD COLUMN short_description TEXT NOT NULL DEFAULT '';
@@ -0,0 +1,5 @@
-- Add icon field to tags
ALTER TABLE tags ADD COLUMN icon TEXT;
-- Drop icon field from projects
ALTER TABLE projects DROP COLUMN icon;