Add very basic crawl job
Loops through feeds and adds items from each feed.
This commit is contained in:
@@ -10,6 +10,8 @@ CREATE TABLE IF NOT EXISTS "feeds" (
|
||||
"updated_at" timestamp(3) NOT NULL,
|
||||
"deleted_at" timestamp(3)
|
||||
);
|
||||
CREATE INDEX "feeds_deleted_at" ON "feeds" ("deleted_at");
|
||||
CREATE UNIQUE INDEX "feeds_url" ON "feeds" ("url");
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "items" (
|
||||
"id" SERIAL PRIMARY KEY NOT NULL,
|
||||
@@ -21,3 +23,5 @@ CREATE TABLE IF NOT EXISTS "items" (
|
||||
"updated_at" timestamp(3) NOT NULL,
|
||||
"deleted_at" timestamp(3)
|
||||
);
|
||||
CREATE INDEX "items_deleted_at" ON "items" ("deleted_at");
|
||||
CREATE UNIQUE INDEX "items_url_and_feed_id" ON "items" ("url", "feed_id");
|
||||
|
||||
Reference in New Issue
Block a user