remove feeds table

This commit is contained in:
Hongbo Wu
2023-11-14 15:27:58 +08:00
parent 05b386ad79
commit 3d84108202
4 changed files with 15 additions and 58 deletions

View File

@ -22,23 +22,4 @@ CREATE POLICY library_item_admin_policy on omnivore.library_item
TO omnivore_admin
USING (true);
CREATE TABLE omnivore.feed (
id uuid PRIMARY KEY DEFAULT uuid_generate_v1mc(),
title text NOT NULL,
url text NOT NULL,
author text,
description text,
image text,
created_at timestamptz NOT NULL DEFAULT current_timestamp,
updated_at timestamptz NOT NULL DEFAULT current_timestamp,
published_at timestamptz,
UNIQUE(url)
);
CREATE INDEX feed_title_idx ON omnivore.feed(title);
CREATE TRIGGER update_feed_modtime BEFORE UPDATE ON omnivore.feed FOR EACH ROW EXECUTE PROCEDURE update_updated_at_column();
GRANT SELECT, INSERT, UPDATE, DELETE ON omnivore.feed TO omnivore_user;
COMMIT;

View File

@ -4,8 +4,6 @@
BEGIN;
DROP TABLE omnivore.feed;
DROP policy library_item_admin_policy ON omnivore.library_item;
ALTER TABLE omnivore.library_item