SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: monolog_entries.http_server
Opened this issue · 0 comments
bodnar1212 commented
When logger called in Symfony Command don't cached logs in db.
Need to set this params:
$entryTable = $this->schema->createTable($this->tableName);
$entryTable->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
$entryTable->addColumn('channel', 'string', array('length' => 255, 'notnull' => true));
$entryTable->addColumn('level', 'integer', array('notnull' => true));
$entryTable->addColumn('level_name', 'string', array('length' => 255, 'notnull' => true));
$entryTable->addColumn('message', 'text', array('notnull' => true));
$entryTable->addColumn('datetime', 'datetime', array('notnull' => true));
$entryTable->addColumn('context', 'text', array('notnull' => true));
$entryTable->addColumn('extra', 'text', array('notnull' => true));
$entryTable->addColumn('http_server', 'text', array('notnull' => false));
$entryTable->addColumn('http_post', 'text', array('notnull' => false));
$entryTable->addColumn('http_get', 'text', array('notnull' => false));