mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 14:51:18 +00:00
Dessalines
ee7df0dc35
- Adds an image_details table, which stores the height, width, and content_type for local and remote images. - For LocalImages, this information already comes back with the upload. - For RemoteImages, it calls the pictrs details endpoint. - Fixed some issues with proxying non-image urls. - Fixes #3328 - Also fixes #4703
7 lines
153 B
SQL
7 lines
153 B
SQL
ALTER TABLE remote_image
|
|
ADD UNIQUE (link),
|
|
DROP CONSTRAINT remote_image_pkey,
|
|
ADD COLUMN id serial PRIMARY KEY;
|
|
|
|
DROP TABLE image_details;
|
|
|