Add support for file attachments in equipment status changes
- Introduced functionality for uploading and managing attachments in the ChangeEquipmentStatus module. - Added new endpoints for uploading and deleting attachments, as well as for downloading them. - Updated the ChangeEquipmentStatusService to handle attachment storage and retrieval using the new storage service methods. - Enhanced the ChangeEquipmentStatusEdit and ChangeEquipmentStatusShow components to support attachment input and display. - Removed deprecated attachment handling from Equipment module to streamline functionality. - Updated Prisma schema to reflect changes in attachment management.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
-- Move attachments from Equipment to ChangeEquipmentStatus and allow multiple files.
|
||||
ALTER TABLE IF EXISTS "Equipment" DROP COLUMN IF EXISTS "attachment";
|
||||
ALTER TABLE IF EXISTS "ChangeEquipmentStatus" ADD COLUMN IF NOT EXISTS "attachments" JSONB;
|
||||
|
||||
Reference in New Issue
Block a user