diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-15 10:47:22 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:25 +0800 |
commit | 5237e9c2ed29cdee0288459cf381981426ad4ba8 (patch) | |
tree | 696e6e094dff951f58b134102c251267c1b1c338 /packages/pipeline/migrations | |
parent | 6bab2f70b956653367b046f4688d789f81de0b85 (diff) | |
download | dexon-sol-tools-5237e9c2ed29cdee0288459cf381981426ad4ba8.tar dexon-sol-tools-5237e9c2ed29cdee0288459cf381981426ad4ba8.tar.gz dexon-sol-tools-5237e9c2ed29cdee0288459cf381981426ad4ba8.tar.bz2 dexon-sol-tools-5237e9c2ed29cdee0288459cf381981426ad4ba8.tar.lz dexon-sol-tools-5237e9c2ed29cdee0288459cf381981426ad4ba8.tar.xz dexon-sol-tools-5237e9c2ed29cdee0288459cf381981426ad4ba8.tar.zst dexon-sol-tools-5237e9c2ed29cdee0288459cf381981426ad4ba8.zip |
Add homepage_url to relayers
Diffstat (limited to 'packages/pipeline/migrations')
-rw-r--r-- | packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts b/packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts new file mode 100644 index 000000000..9a4811ad5 --- /dev/null +++ b/packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; + +export class AddHomepageUrlToRelayers1542249766882 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise<any> { + await queryRunner.addColumn( + 'raw.relayers', + new TableColumn({ name: 'homepage_url', type: 'varchar', default: `'unknown'` }), + ); + } + + public async down(queryRunner: QueryRunner): Promise<any> { + await queryRunner.dropColumn('raw.relayers', 'homepage_url'); + } +} |