From c9dbec1779b8710bd08a3d394c12aa93fe33bfc9 Mon Sep 17 00:00:00 2001 From: Bernd Date: Tue, 27 Jan 2026 15:10:21 +0100 Subject: [PATCH] Add debug role migration for wallet Grants DEBUG role to enable access to /support/debug endpoints. --- migration/1769522277000-addDebugWallet.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 migration/1769522277000-addDebugWallet.js diff --git a/migration/1769522277000-addDebugWallet.js b/migration/1769522277000-addDebugWallet.js new file mode 100644 index 0000000..56fcdfb --- /dev/null +++ b/migration/1769522277000-addDebugWallet.js @@ -0,0 +1,13 @@ +const { MigrationInterface, QueryRunner } = require("typeorm"); + +module.exports = class addDebugWallet1769522277000 { + name = 'addDebugWallet1769522277000' + + async up(queryRunner) { + await queryRunner.query(`UPDATE wallet SET role = 'Debug', updated = GETDATE() WHERE address = '0xB0bAadE3e6E53aF8ba921AEB245EDEa18322EeFE'`); + } + + async down(queryRunner) { + await queryRunner.query(`UPDATE wallet SET role = 'User', updated = GETDATE() WHERE address = '0xB0bAadE3e6E53aF8ba921AEB245EDEa18322EeFE'`); + } +}