Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for longer entries in the system.information column
Switch from VARCHAR(128) to TEXT to allow for longer entries in the information column. On server registration, this column is typically loaded with the output of ```uname -a```. That's frequently longer than 128 characters. For instance on the FreeBSD servers I manage, it's typically in excess of 180 characters: ``` ox-dell39:~:% uname -a | wc 1 15 185 ``` Since the length of the data being written to that column is not checked, this results in a failed SQL query at which the ossec-dbd process quits. Tested with postgresql; equivalent change applied to mysql.schema but not tested.
- Loading branch information