fix: rename the henza brand to montzar
اپ: اصلاح نام برند به منتزر Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -385,10 +385,12 @@ async function main() {
|
||||
prisma.category.upsert({ where: { id: 'cat-coins' }, update: {}, create: { id: 'cat-coins', title: 'سکه و شمش' } }),
|
||||
]);
|
||||
|
||||
// Databases seeded before the rename hold the old id; Product/Promotion FKs cascade on update.
|
||||
await prisma.brand.updateMany({ where: { id: 'brand-henza' }, data: { id: 'brand-montzar' } });
|
||||
const brandMontzar = await prisma.brand.upsert({
|
||||
where: { id: 'brand-henza' },
|
||||
where: { id: 'brand-montzar' },
|
||||
update: { title: 'منتزر طلا' },
|
||||
create: { id: 'brand-henza', title: 'منتزر طلا' },
|
||||
create: { id: 'brand-montzar', title: 'منتزر طلا' },
|
||||
});
|
||||
const brandArtisan = await prisma.brand.upsert({
|
||||
where: { id: 'brand-artisan' },
|
||||
|
||||
Reference in New Issue
Block a user