Couldn't add featured photo from unsplash
salamwaddah opened this issue · 0 comments
salamwaddah commented
wink_posts.featured_image
column is a string type with limited character. Unsplash gives long links for images
This is the error from Wink
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'featured_image' at row 1 (SQL: update wink_posts
set featured_image
= https://images.unsplash.com/photo-1604005366359-2f8f2a044336?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxOTYxMzR8MHwxfHNlYXJjaHwxfHxyYXNwYmVycnklMjBwaSUyMHNlcnZlcnxlbnwwfDB8fA&ixlib=rb-1.2.1&q=80&w=1080, featured_image_caption
= Photo by Jainath Ponnala on Unsplash, wink_posts
.updated_at
= 2021-01-05 12:30:01 where id
= 51927ae3-83d8-40ab-ab38-8d18c3cbddd6)