localize seed image URLs to upload paths
This commit is contained in:
@@ -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/%';
|
||||
Reference in New Issue
Block a user