aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-15 10:47:22 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commitb771020f8804b3f9853d44ffa2b43195cc08162a (patch)
treeae497074b64d1e7328a320b4554bf65140e720dc /packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts
parentb42cf0c797661bfc94eb8162817eb8fa118a69a2 (diff)
downloaddexon-0x-contracts-b771020f8804b3f9853d44ffa2b43195cc08162a.tar
dexon-0x-contracts-b771020f8804b3f9853d44ffa2b43195cc08162a.tar.gz
dexon-0x-contracts-b771020f8804b3f9853d44ffa2b43195cc08162a.tar.bz2
dexon-0x-contracts-b771020f8804b3f9853d44ffa2b43195cc08162a.tar.lz
dexon-0x-contracts-b771020f8804b3f9853d44ffa2b43195cc08162a.tar.xz
dexon-0x-contracts-b771020f8804b3f9853d44ffa2b43195cc08162a.tar.zst
dexon-0x-contracts-b771020f8804b3f9853d44ffa2b43195cc08162a.zip
Add homepage_url to relayers
Diffstat (limited to 'packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts')
-rw-r--r--packages/pipeline/migrations/1542249766882-AddHomepageUrlToRelayers.ts14
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');
+ }
+}