Skip to content

Commit

Permalink
fix(indexer): change predictedClosedHeight type to allow larger values
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed May 28, 2024
1 parent 95a7166 commit 8423044
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions indexer/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ Some indexer updates changes the database schemas and an upgrade script must be

**It is recommended to stop the indexer before running any migration script.**

## v1.8.2

Change the type of the lease's `predictedClosedHeight` to allow larger values.
```
ALTER TABLE lease
ALTER COLUMN "predictedClosedHeight"
TYPE numeric(30,0)
USING "predictedClosedHeight"::numeric(30,0);
```

## v1.8.0

Version 1.8.0 adds the necessary fields for improving the Akash provider uptime checks.
Expand Down
2 changes: 1 addition & 1 deletion shared/dbSchemas/akash/lease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Lease extends Model {
@Required @Column providerAddress: string;
@Required @Column createdHeight: number;
@Column closedHeight?: number;
@Required @Column(DataTypes.BIGINT) predictedClosedHeight: number;
@Required @Column(DataTypes.DECIMAL(30, 0)) predictedClosedHeight: number;
@Required @Column(DataTypes.DOUBLE) price: number;
@Required @Default(0) @Column(DataTypes.DOUBLE) withdrawnAmount: number;
@Required @Column denom: string;
Expand Down

0 comments on commit 8423044

Please sign in to comment.