Closed StephenKairos closed 6 years ago
alter table(:stories) do modify :locked, :boolean, default: false, null: false end
This causes an error with: mix ecto.migrate
mix ecto.migrate
DEBUG: [info] == Running WritersUnblocked.Repo.Migrations.LockedNotNullable.change/0 forward [info] alter table stories ** (Postgrex.Error) ERROR 23502 (not_null_violation): column "locked" contains null values
[info] == Running WritersUnblocked.Repo.Migrations.LockedNotNullable.change/0 forward [info] alter table stories ** (Postgrex.Error) ERROR 23502 (not_null_violation): column "locked" contains null values
Need to find a solution for this.
Internal SQL issue. Did psql commands. Fixed.
alter table(:stories) do modify :locked, :boolean, default: false, null: false end
This causes an error with:
mix ecto.migrate
DEBUG:
[info] == Running WritersUnblocked.Repo.Migrations.LockedNotNullable.change/0 forward [info] alter table stories ** (Postgrex.Error) ERROR 23502 (not_null_violation): column "locked" contains null values
Need to find a solution for this.