Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: monolog_entries.http_server #13

Open
bodnar1212 opened this issue Mar 28, 2016 · 0 comments

Comments

@bodnar1212
Copy link

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));
@bodnar1212 bodnar1212 changed the title When logger called in Symfony Command don't cached logs in db. SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: monolog_entries.http_server Mar 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant