Skip to content

Illuminate\Database\QueryException  #43

@mahdirashidi

Description

@mahdirashidi

SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into migrations (migration, batch) values (2017_04_08_163453_create_world_cities_locale_
table, 4))

at\vendor\laravel\framework\src\Illuminate\Database\Connection.php:678
674▕ // If an exception occurs when attempting to run a query, we'll format the error
675▕ // message to include the bindings with SQL, which will make this exception a
676▕ // lot more helpful to the developer instead of just the database's errors.
677▕ catch (Exception $e) {
➜ 678▕ throw new QueryException(
679▕ $query, $this->prepareBindings($bindings), $e
680▕ );
681▕ }
682▕

1 \vendor\laravel\framework\src\Illuminate\Database\Connection.php:471
PDOException::("SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value")

2 \vendor\laravel\framework\src\Illuminate\Database\Connection.php:471
PDOStatement::execute()

any help with this one?
this is happenin' when I run php artisan world:init

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions