-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
hasState
field to program entity (#1342)
- Loading branch information
1 parent
fa0bce1
commit 9930458
Showing
26 changed files
with
234 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
idea/common/src/enums/rabbit-mqueues.enum.ts → idea/common/src/enums/rmq.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
enum RabbitMQueues { | ||
export enum RMQQueues { | ||
GENESISES = 'genesises', | ||
REPLIES = 'replies', | ||
} | ||
|
||
enum RabbitMQExchanges { | ||
export enum RMQExchanges { | ||
DIRECT_EX = 'direct.ex', | ||
TOPIC_EX = 'topic.ex', | ||
} | ||
|
||
enum RMQServices { | ||
export enum RMQServices { | ||
INDEXER = 'indxr', | ||
TEST_BALANCE = 'tb', | ||
META_STORAGE = 'meta', | ||
} | ||
|
||
enum RMQServiceActions { | ||
export enum RMQServiceActions { | ||
ADD = 'add', | ||
DELETE = 'delete', | ||
} | ||
|
||
export { RabbitMQueues, RabbitMQExchanges, RMQServiceActions, RMQServices }; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
idea/indexer/src/database/migrations/1690793654952-add-has-state-field.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class addHasStateField1690793654952 implements MigrationInterface { | ||
name = 'addHasStateField1690793654952' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
ALTER TABLE "code" | ||
ADD "hasState" boolean NOT NULL DEFAULT false | ||
`); | ||
await queryRunner.query(` | ||
ALTER TABLE "program" | ||
ADD "hasState" boolean NOT NULL DEFAULT false | ||
`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
ALTER TABLE "program" DROP COLUMN "hasState" | ||
`); | ||
await queryRunner.query(` | ||
ALTER TABLE "code" DROP COLUMN "hasState" | ||
`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
idea/indexer/src/healthcheck/index.ts → idea/indexer/src/healthcheck.server.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.