Files
xevion.dev/migrations/20260107002857_refactor_projects_schema.sql
Xevion 2251bd276c 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)
2026-01-06 19:40:09 -06:00

10 lines
308 B
SQL

-- 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 '';