mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 04:26:43 -06:00
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:
@@ -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;
|
||||
Reference in New Issue
Block a user