cleanup-request-rs
Felix Ableitner 2023-10-24 17:07:52 +02:00
parent ae96d863a4
commit 7306153161
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,4 @@
drop table remote_image;
DROP TABLE remote_image;
ALTER TABLE local_image RENAME TO image_upload;
alter table local_image rename to image_upload;

View File

@ -1,7 +1,8 @@
CREATE TABLE remote_image (
id serial PRIMARY KEY,
link text not null unique,
link text NOT NULL UNIQUE,
published timestamptz DEFAULT now() NOT NULL
);
alter table image_upload rename to local_image;
ALTER TABLE image_upload RENAME TO local_image;