I'm trying to add a new column to customer_company.
String columns are OK, but I've got a problem with a numeric column.
I've added it in MySQL this way:
Code: Select all
alter table customer_company add column remaining_reserved_days decimal(5,2);
Code: Select all
[ 'RemainingReservedDays', 'Remaining reserved days', 'remaining_reserved_days', 1, 0, 'int', '', 1 ],
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' reserved_days_deadline = '', change_time = current_timestamp, change_by = 2 ' at line 1, SQL: 'UPDATE customer_company SET customer_id = 'XXXX', name = 'XXXXX', street = 'Xxxxxx', zip = '00000', city = 'Xxxx', country = 'Xxxx', url = '', comments = '', valid_id = 1, remaining_reserved_days = , reserved_days_deadline = '', change_time = current_timestamp, change_by = 2 WHERE LOWER(customer_id) = LOWER('XXXX')'
Of course the SQL syntax error is here: remaining_reserved_days = ,
Do you think of an idea to prevent it?
Regards,
HervE