重构:硬切商品来源并移除旧运维入口
This commit is contained in:
@@ -168,9 +168,9 @@ export async function applyAdminTemplateProductBootstrap(
|
||||
const inserted = await client.query<{ id: number }>(
|
||||
`
|
||||
INSERT INTO product_catalog (
|
||||
canonical_sku, canonical_name, category, unit_name, status,
|
||||
canonical_sku, canonical_name, category, unit_name, source_kind, status,
|
||||
attributes_json, created_at, updated_at
|
||||
) VALUES ($1, $2, $3, $4, $5, $6::jsonb, $7, $7)
|
||||
) VALUES ($1, $2, $3, $4, 'work_order', $5, $6::jsonb, $7, $7)
|
||||
ON CONFLICT (canonical_sku) DO NOTHING
|
||||
RETURNING id
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user