lemmy/migrations/2023-10-24-131607_proxy_links/up.sql

9 lines
188 B
MySQL
Raw Normal View History

2023-10-24 13:56:04 +00:00
CREATE TABLE remote_image (
id serial PRIMARY KEY,
2023-10-24 15:07:52 +00:00
link text NOT NULL UNIQUE,
2023-10-24 13:56:04 +00:00
published timestamptz DEFAULT now() NOT NULL
);
2023-10-24 15:07:52 +00:00
ALTER TABLE image_upload RENAME TO local_image;