In V11 make empty fields be null and not an empty string |
10/21/2025 13:16:01 | |
| PHPRunner General questions | ||
|
A
asawyer13 authorDevClub member
Is there a sql update statement I can do in the dev server database to make all fields put null in any field that's saved rather than an empty string? |
||
|
|
ChatGPT 10/21/2025 |
|
|
Sergey Kornilov admin 10/21/2025 |
|
You can check $sqlValues parameter in BeforeAdd and BeforeEdit events. You can use this parameter to assign NULL values to any field i.e.:
https://xlinesoft.com/phprunner/docs/before_record_added.htm |
|
|
A
|
asawyer13 authorDevClub member 11/2/2025 |
|
In V10 and V11, there is a setting in Fields that will do what is needed without code. |
|
|
W
|
wpl 11/5/2025 |
|
Alan, what you are looking for is stored in the table "editformats", field "value" of the projects database. This field contains JSON as text. ...,"textInsertNull":false,...What database system are you using to store the projects? Regards |
|