Rename table from Ebay_Items to Listings
All checks were successful
Cargo Build & Test / Rust project - latest (1.85.1) (push) Successful in 3m38s
Cargo Build & Test / Rust project - latest (1.86) (push) Successful in 4m0s
Cargo Build & Test / Rust project - latest (1.87) (push) Successful in 4m8s
Cargo Build & Test / Rust project - latest (1.88) (push) Successful in 9m28s
All checks were successful
Cargo Build & Test / Rust project - latest (1.85.1) (push) Successful in 3m38s
Cargo Build & Test / Rust project - latest (1.86) (push) Successful in 4m0s
Cargo Build & Test / Rust project - latest (1.87) (push) Successful in 4m8s
Cargo Build & Test / Rust project - latest (1.88) (push) Successful in 9m28s
This commit is contained in:
@ -144,7 +144,7 @@ impl DBTable for ParsedStorage {
|
|||||||
parse_engine INTEGER,
|
parse_engine INTEGER,
|
||||||
need_description_check INTEGER,
|
need_description_check INTEGER,
|
||||||
UNIQUE(item, parse_engine)
|
UNIQUE(item, parse_engine)
|
||||||
FOREIGN KEY(item) REFERENCES Ebay_Items(item_id)
|
FOREIGN KEY(item) REFERENCES Listings(item_id)
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
impl ParsedStorage {
|
impl ParsedStorage {
|
||||||
@ -208,7 +208,7 @@ impl DBTable for ItemAppearances {
|
|||||||
timestamp INTEGER NOT NULL,
|
timestamp INTEGER NOT NULL,
|
||||||
current_bid_usd_cents INTEGER,
|
current_bid_usd_cents INTEGER,
|
||||||
UNIQUE(item, timestamp),
|
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)
|
FOREIGN KEY(category, timestamp) REFERENCES Pages_Parsed(category, timestamp)
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
@ -272,7 +272,7 @@ pub struct Listing {
|
|||||||
pub image_url: String,
|
pub image_url: String,
|
||||||
}
|
}
|
||||||
impl DBTable for Listing {
|
impl DBTable for Listing {
|
||||||
const TABLE_NAME: &'static str = "Ebay_Items";
|
const TABLE_NAME: &'static str = "Listings";
|
||||||
const TABLE_SCHEMA: &'static str = "
|
const TABLE_SCHEMA: &'static str = "
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
item_id INTEGER NOT NULL UNIQUE,
|
item_id INTEGER NOT NULL UNIQUE,
|
||||||
|
Reference in New Issue
Block a user