Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5204 มุมมอง

I was migrating my openerp database from one server to another. And while restoring database on another server I am geting this error

ALTER TABLE ERROR: insert or update on table "stock_move" violates foreign key constraint "stock_move_product_id_fkey" DETAIL: Key (product_id)=(2466) is not present in table "product_product". ALTER TABLE

Please Suggest !!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You might not have the Product with id = 2466 in the product_product table which is used as foreign key in stock_move table. You can create product with id = 2466 in product_product as a solution.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
2885
0
มี.ค. 15
3254
How do I view PostgreSQL logs? แก้ไขแล้ว
1
ก.พ. 18
10289
0
ก.พ. 25
929
2
ม.ค. 25
7135