Skip to content

Commit

Permalink
Give migrations more time to run (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Oct 30, 2024
1 parent f02633b commit 29134dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(
"""
update events set qualification_id = (payload #>> Array['MandatoryQualification', 'QualificationId'])::uuid;
update events set qualification_id = (payload #>> Array['MandatoryQualification', 'QualificationId'])::uuid
where (payload #>> Array['MandatoryQualification', 'QualificationId'])::uuid is not null;
update events set alert_id = (payload #>> Array['Alert', 'AlertId'])::uuid;
update events set alert_id = (payload #>> Array['Alert', 'AlertId'])::uuid
where (payload #>> Array['Alert', 'AlertId'])::uuid is not null;
""");
}

Expand Down
4 changes: 2 additions & 2 deletions terraform/aks/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ resource "kubernetes_job" "migrations" {
wait_for_completion = true

timeouts {
create = "11m"
update = "11m"
create = "15m"
update = "15m"
}
}

Expand Down

0 comments on commit 29134dc

Please sign in to comment.