librenms/sql-schema/280.sql
Tony Murray daffa7e274
Eventlog updates (#9633)
* Eventlog updates
remove host from eventlog table, retain in api
allow most fields nullable

* updated schema

* revert auth for legacy log_event function
safer check in the model

* add function modifiers
2019-01-10 00:52:00 -06:00

6 lines
246 B
SQL

alter table eventlog modify device_id int unsigned null;
alter table eventlog modify reference varchar(64) null;
alter table eventlog modify severity tinyint default 2 not null;
drop index host on eventlog;
alter table eventlog drop column host;