Update schemas with new fields, create initial import from prod script
This commit is contained in:
@@ -408,7 +408,7 @@ SELECT
|
||||
c.id as category_id,
|
||||
c.name,
|
||||
c.description,
|
||||
c.parent_category,
|
||||
p.name as parent_name,
|
||||
c.status,
|
||||
cm.product_count,
|
||||
cm.active_products,
|
||||
@@ -424,5 +424,7 @@ SELECT
|
||||
END as performance_rating
|
||||
FROM
|
||||
categories c
|
||||
LEFT JOIN
|
||||
categories p ON c.parent_id = p.id
|
||||
LEFT JOIN
|
||||
category_metrics cm ON c.id = cm.category_id;
|
||||
Reference in New Issue
Block a user