@@ -22,13 +22,13 @@ php artisan photos:migrate [--dry-run]
2222storage/app/public/
2323├── photos/ (original size)
2424 └── {teamId}/
25- ├ ── {personId}_{index}_{timestamp}.{ext}
25+ └ ── {personId}_{index}_{timestamp}.{ext}
2626├── photos-096/ (small size)
2727 └── {teamId}/
28- ├ ── {personId}_{index}_{timestamp}.{ext}
28+ └ ── {personId}_{index}_{timestamp}.{ext}
2929└── photos-384/ (medium size)
3030 └── {teamId}/
31- ├ ── {personId}_{index}_{timestamp}.{ext}
31+ └ ── {personId}_{index}_{timestamp}.{ext}
3232```
3333
3434### To (New Structure)
@@ -38,8 +38,9 @@ storage/app/public/photos/
3838└── {teamId}/
3939 └── {personId}/
4040 ├── {personId}_{index}_{timestamp}.{ext} (original size)
41- ├── {personId}_{index}_{timestamp}_small.{ext} (small size)
42- └── {personId}_{index}_{timestamp}_medium.{ext} (medium size)
41+ ├── {personId}_{index}_{timestamp}_large.{ext} (large size)
42+ ├── {personId}_{index}_{timestamp}_medium.{ext} (medium size)
43+ └── {personId}_{index}_{timestamp}_small.{ext} (small size)
4344```
4445
4546### Backup Structure (Created Automatically)
@@ -73,7 +74,7 @@ The command supports all common image file formats:
73745 . ** Extracts metadata** from the file path:
7475 - Team ID from the first directory level
7576 - Person ID from the filename (everything before the first underscore)
76- 6 . ** Renames files** by adding size suffixes (` _small ` , ` _medium ` ) for non-original images while preserving file extensions
77+ 6 . ** Renames files** by adding size suffixes (` _large ` , ` _medium ` , ` _small ` ) for non-original images while preserving file extensions
77787 . ** Creates the new directory structure** (` photos/{teamId}/{personId}/ ` )
78798 . ** Copies files** to their new locations
79809 . ** Deletes original files** after successful copy
0 commit comments