fix(register): sale_id/promo_code_id 传None→空字符串,sale_id列NOT NULL
对齐 init_free_customers.dspy 写法。修复 (1048, Column 'sale_id' cannot be null)。
This commit is contained in:
parent
9b695301ca
commit
c13770c416
@ -62,8 +62,8 @@ async with db.sqlorContext(dbname) as sor:
|
|||||||
'id': getID(),
|
'id': getID(),
|
||||||
'customerid': orgid,
|
'customerid': orgid,
|
||||||
'resellerid': reseller_id,
|
'resellerid': reseller_id,
|
||||||
'sale_id': None,
|
'sale_id': '',
|
||||||
'promo_code_id': None,
|
'promo_code_id': '',
|
||||||
'bind_type': '3',
|
'bind_type': '3',
|
||||||
})
|
})
|
||||||
debug(f'register: free customer {orgid} bind created (reseller={reseller_id})')
|
debug(f'register: free customer {orgid} bind created (reseller={reseller_id})')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user