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

PDOException: Integrity constraint violation 19 NOT NULL constraint failed #1

Closed
jbrooksuk opened this issue Nov 16, 2014 · 0 comments
Labels
Bug Bugs with Cachet
Milestone

Comments

@jbrooksuk
Copy link
Member

jamesbrooks@jbrooksuk Cachet (master) $ php artisan tinker
$[1] > $incident = new Incident;
// object(Incident)(
//   'incrementing' => true,
//   'timestamps' => true,
//   'exists' => false
// )
[2] > $incident->name = "Test";
// 'Test'
[3] > $incident->message = "This is a test incident. Something went wrong.";
// 'This is a test incident. Something went wrong.'
[4] > $incident->save();
PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: incidents.status' in /Users/jamesbrooks/Sites/Cachet/vendor/laravel/framework/src/Illuminate/Database/Connection.php:369
Stack trace:
#0 /Users/jamesbrooks/Sites/Cachet/vendor/laravel/framework/src/Illuminate/Database/Connection.php(369): PDOStatement->execute(Array)
#1 /Users/jamesbrooks/Sites/Cachet/vendor/laravel/framework/src/Illuminate/Database/Connection.php(617): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\SQLiteConnection), 'insert into "in...', Array)
#2 /Users/jamesbrooks/Sites/Cachet/vendor/laravel/framework/src/Illuminate/Database/Connection.php(581): Illuminate\Database\Connection->runQueryCallback('insert into "in...', Array, Object(Closure))
#3 /Users/jamesbrooks/Sites/Cachet/vendor/laravel/framework/src/Illuminate/Database/Connection.php(370): Illuminate\Database\Connection->run('insert into "in...', Array, Object(Closure)) in /Users/jamesbrooks/Sites/Cachet/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 625
[5] > exit;

I rarely use SQLite, so it's probably an obvious error.

@jbrooksuk jbrooksuk added the Bug Bugs with Cachet label Nov 16, 2014
jbrooksuk added a commit that referenced this issue Nov 19, 2014
@CuReSoft CuReSoft mentioned this issue Jan 4, 2015
@GrahamCampbell GrahamCampbell modified the milestone: V0.1.0 Alpha Jul 25, 2015
jbrooksuk pushed a commit that referenced this issue Nov 11, 2015
MathisG-Recia pushed a commit to MathisG-Recia/Cachet that referenced this issue Apr 13, 2021
Fixing tests and running in CI - GitLab Actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs with Cachet
Projects
None yet
Development

No branches or pull requests

2 participants