Skip to content

PostgreSQL error in timestamps(Datetime field overflow) #1

@nilsenj

Description

@nilsenj

php artisan migrate

[Illuminate\Database\QueryException]
SQLSTATE[22008]: Datetime field overflow: 7 ERROR: date/time field value out of range: "0000-00-00 00:0
0:00" (SQL: create table "crms" ("id" serial primary key not null, "crm_name" varchar(255) not null, "cr
m_description" varchar(255) null, "url" varchar(255) not null, "request_type" varchar(10) not null defau
lt 'POST', "parameters" text null, "data_format" varchar(255) not null default 'JSON', "data_mapper" var
char(255) null, "last_upload" timestamp(0) without time zone not null default '0000-00-00 00:00:00', "la
st_download" timestamp(0) without time zone not null default '0000-00-00 00:00:00', "extended_data" text
null, "created_at" timestamp(0) without time zone not null, "updated_at" timestamp(0) without time zone
not null, "deleted_at" timestamp(0) without time zone null))

[PDOException]
SQLSTATE[22008]: Datetime field overflow: 7 ERROR: date/time field value out of range: "0000-00-00 00:0
0:00"

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