- Add previous_image_id column to apps table (migration 006)
- Save current image as previous before deploying new one
- POST /apps/{id}/rollback endpoint with handler
- Rollback stops current container, starts previous image
- Creates deployment record for rollback operations
- Rollback button in app detail UI (only when previous image exists)
- Add btn-warning CSS class for rollback button styling
fixes #71
3 lines
117 B
SQL
3 lines
117 B
SQL
-- Add previous_image_id to apps for deployment rollback support
|
|
ALTER TABLE apps ADD COLUMN previous_image_id TEXT;
|