From b900e849d90be439b7a92be07973fb1e27da731b Mon Sep 17 00:00:00 2001 From: hak8or Date: Sat, 28 Jun 2025 01:02:45 -0400 Subject: [PATCH] Rename table from Ebay_Items to Listings --- src/db.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/db.rs b/src/db.rs index 8717af8..91b41fd 100644 --- a/src/db.rs +++ b/src/db.rs @@ -144,7 +144,7 @@ impl DBTable for ParsedStorage { parse_engine INTEGER, need_description_check INTEGER, UNIQUE(item, parse_engine) - FOREIGN KEY(item) REFERENCES Ebay_Items(item_id) + FOREIGN KEY(item) REFERENCES Listings(item_id) "; } impl ParsedStorage { @@ -208,7 +208,7 @@ impl DBTable for ItemAppearances { timestamp INTEGER NOT NULL, current_bid_usd_cents INTEGER, UNIQUE(item, timestamp), - FOREIGN KEY(item) REFERENCES Ebay_Items(item_id), + FOREIGN KEY(item) REFERENCES Listings(item_id), FOREIGN KEY(category, timestamp) REFERENCES Pages_Parsed(category, timestamp) "; } @@ -272,7 +272,7 @@ pub struct Listing { pub image_url: String, } impl DBTable for Listing { - const TABLE_NAME: &'static str = "Ebay_Items"; + const TABLE_NAME: &'static str = "Listings"; const TABLE_SCHEMA: &'static str = " id INTEGER PRIMARY KEY, item_id INTEGER NOT NULL UNIQUE,