Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions migration/1772841480000-AddXtJusd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = class AddXtJusd1772841480000 {
name = 'AddXtJusd1772841480000'

async up(queryRunner) {
await queryRunner.query(`
IF NOT EXISTS (SELECT 1 FROM "dbo"."asset" WHERE "uniqueName" = 'XT/JUSD')
INSERT INTO "dbo"."asset" (
"name", "type", "buyable", "sellable", "chainId", "dexName", "category", "blockchain", "uniqueName", "description",
"comingSoon", "decimals", "paymentEnabled", "refundEnabled", "cardBuyable", "cardSellable", "instantBuyable", "instantSellable",
"financialType", "ikna", "personalIbanEnabled", "amlRuleFrom", "amlRuleTo", "priceRuleId",
"approxPriceUsd", "approxPriceChf", "approxPriceEur", "sortOrder"
) VALUES (
'JUSD', 'Custody', 0, 0, NULL, 'JUSD', 'Private', 'XT', 'XT/JUSD', NULL,
0, NULL, 0, 0, 0, 0, 0, 0,
'USD', 0, 0, 0, 0, 40,
1.0, 0.776106, 0.859718, NULL
)
`);
}

async down(queryRunner) {
await queryRunner.query(`DELETE FROM "dbo"."asset" WHERE "uniqueName" = 'XT/JUSD'`);
}
}
Loading