운영 momo_warehouses.objid 가 text 타입(예: MOMOWH000000001)이라 default_wh_objid 도 text 로 일치시켜야 매핑 가능. - db/migrations/022_user_default_wh_text.sql - /api/admin/users/save: ::numeric 캐스트 제거 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
-- user_info.default_wh_objid 를 text 로 변환
|
||||
-- 운영 momo_warehouses.objid 가 text 타입(예: MOMOWH000000001)이라 numeric 으로는 매핑 불가
|
||||
ALTER TABLE user_info
|
||||
ALTER COLUMN default_wh_objid TYPE text USING default_wh_objid::text;
|
||||
Binary file not shown.
Binary file not shown.
@@ -40,7 +40,7 @@ export async function POST(request: NextRequest) {
|
||||
address=COALESCE($11, address), ceo_name=COALESCE($12, ceo_name),
|
||||
biz_no=COALESCE($13, biz_no),
|
||||
unlimited_qty=$14, view_hidden=$15,
|
||||
default_wh_objid=$16::numeric
|
||||
default_wh_objid=$16
|
||||
WHERE user_id=$10`,
|
||||
[body.user_name || "", body.sabun || "", body.dept_code || "",
|
||||
body.dept_name || "", body.position_name || "", body.email || "",
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user