-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add hasData and typeScript to output entity
- Loading branch information
1 parent
6c783e3
commit 9fe535b
Showing
3 changed files
with
37 additions
and
1 deletion.
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
24 changes: 24 additions & 0 deletions
24
packages/neuron-wallet/src/database/chain/migrations/1567144517514-AddTypeAndHasData.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,24 @@ | ||
import {MigrationInterface, QueryRunner, TableColumn} from "typeorm"; | ||
|
||
export class AddTypeAndHasData1567144517514 implements MigrationInterface { | ||
|
||
public async up(queryRunner: QueryRunner): Promise<any> { | ||
await queryRunner.addColumn('output', new TableColumn({ | ||
name: 'typeScript', | ||
type: 'varchar', | ||
isNullable: true, | ||
})) | ||
|
||
await queryRunner.addColumn('output', new TableColumn({ | ||
name: 'hasData', | ||
type: 'boolean', | ||
default: false, | ||
})) | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<any> { | ||
await queryRunner.dropColumn('output', 'hasData') | ||
await queryRunner.dropColumn('output', 'typeScript') | ||
} | ||
|
||
} |
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