Skip to content

Missing default value #4

@piotrooo

Description

@piotrooo

Hi,

there's missing default value for shops.created_at in the Postgres migration sql. In MySQL is set default value.

This causing problem (App:108):

ERROR:  null value in column "created_at" violates not-null constraint
DETAIL:  Failing row contains (1, null, a7924e93afa1ed21af28c92e71432b0f5d473382, https://devshop-82678.shoparena.pl, 2, null, t).
STATEMENT:  INSERT INTO shops (shop, shop_url, version, installed) values ($1,$2,$3,TRUE)

Another examples:

  • access_tokens.created_at
  • billings.created_at

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions