Skip to content

Commit 581ca74

Browse files
authored
Add debug role for bc1q wallet via migration (#132)
1 parent 5af7286 commit 581ca74

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { MigrationInterface, QueryRunner } = require("typeorm");
2+
3+
module.exports = class addDebugWalletBc1q1771078100000 {
4+
name = 'addDebugWalletBc1q1771078100000'
5+
6+
async up(queryRunner) {
7+
await queryRunner.query(`UPDATE wallet SET role = 'Debug', updated = GETDATE() WHERE address = 'bc1qv4hs4qkaw3y3e8q5z6lewuvlv7dus75az4gxxy'`);
8+
}
9+
10+
async down(queryRunner) {
11+
await queryRunner.query(`UPDATE wallet SET role = 'User', updated = GETDATE() WHERE address = 'bc1qv4hs4qkaw3y3e8q5z6lewuvlv7dus75az4gxxy'`);
12+
}
13+
}

0 commit comments

Comments
 (0)