Commit ffbdc058 authored by François Grisez's avatar François Grisez

Remove default value of priority column

parent c648084a
Pipeline #7026 passed with stages
in 13 minutes and 53 seconds
......@@ -697,7 +697,7 @@ void DataBaseEventLogWriter::initTables(soci::session *session, Backend backend)
"CREATE PROCEDURE add_priority_column_to_event_log_table()"
"BEGIN"
" IF NOT EXISTS ((SELECT * FROM information_schema.columns WHERE table_schema=DATABASE() AND table_name='event_log' AND column_name='priority')) THEN"
" ALTER TABLE event_log ADD COLUMN priority VARCHAR(255) NOT NULL DEFAULT 'normal';"
" ALTER TABLE event_log ADD COLUMN priority VARCHAR(255) NOT NULL;"
" END IF;"
"END";
*session << "CALL add_priority_column_to_event_log_table()";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment