Skip to content

Commit

Permalink
Functions: fixing S4 ORM
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Smirnov committed Sep 12, 2023
1 parent c23b078 commit dcfa3d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/s4/postgres_orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RETURNING id;`, o.tableName)
if errors.Is(err, sql.ErrNoRows) {
return ErrVersionTooLow
}
return nil
return err
}

func (o orm) DeleteExpired(limit uint, utcNow time.Time, qopts ...pg.QOpt) (int64, error) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- +goose Up

ALTER TABLE "s4".functions ALTER COLUMN version TYPE BIGINT;

-- +goose Down

ALTER TABLE "s4".functions ALTER COLUMN version TYPE INT USING version::integer;

0 comments on commit dcfa3d6

Please sign in to comment.