localize seed image URLs to upload paths

This commit is contained in:
2026-04-13 21:57:29 -06:00
parent 0e997071c3
commit b115a4b66c
304 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
UPDATE users
SET avatarUrl = REPLACE(avatarUrl, 'https://images.petshop.local/users/', '/uploads/avatars/')
WHERE avatarUrl LIKE 'https://images.petshop.local/users/%';
UPDATE pet
SET imageUrl = REPLACE(imageUrl, 'https://images.petshop.local/pets/', '/uploads/pets/')
WHERE imageUrl LIKE 'https://images.petshop.local/pets/%';
UPDATE product
SET imageUrl = REPLACE(imageUrl, 'https://images.petshop.local/products/', '/uploads/products/')
WHERE imageUrl LIKE 'https://images.petshop.local/products/%';