Clean up from simplifying
This commit is contained in:
@@ -102,16 +102,6 @@ async function main() {
|
||||
|
||||
if (isImportCancelled) throw new Error("Import cancelled");
|
||||
|
||||
// Initialize product_metric_status table for any missing products
|
||||
await localConnection.query(`
|
||||
INSERT IGNORE INTO product_metric_status (pid)
|
||||
SELECT pid FROM products p
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM product_metric_status pms
|
||||
WHERE pms.pid = p.pid
|
||||
)
|
||||
`);
|
||||
|
||||
// Clean up any previously running imports that weren't completed
|
||||
await localConnection.query(`
|
||||
UPDATE import_history
|
||||
|
||||
Reference in New Issue
Block a user