lemmy/migrations/2024-05-05-162540_add_image_detail_table/down.sql
Dessalines ee7df0dc35 Adding an image_details table to store image dimensions.
- 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
2024-05-05 21:47:02 -04:00

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;