UNPKG

@lomray/microservice-payment-stripe

Version:

Stripe payment microservice based on NodeJS & inverted json.

24 lines (20 loc) 1.15 kB
'use strict'; var tslib = require('tslib'); class transactionCharge1700733245581 { constructor() { this.name = 'transactionCharge1700733245581'; } up(queryRunner) { return tslib.__awaiter(this, void 0, void 0, function* () { yield queryRunner.query(`ALTER TABLE "transaction" ADD "chargeId" character varying(66)`); yield queryRunner.query(`ALTER TABLE "transaction" ALTER COLUMN "params" SET DEFAULT '{"refundedTransactionAmount":0,"refundedApplicationFeeAmount":0,"transferReversedAmount":0,"platformFee":0,"stripeFee":0,"extraFee":0,"baseFee":0,"personalFee":0,"transferAmount":0}'`); }); } down(queryRunner) { return tslib.__awaiter(this, void 0, void 0, function* () { yield queryRunner.query(`ALTER TABLE "transaction" DROP COLUMN "chargeId"`); yield queryRunner.query(`ALTER TABLE "transaction" ALTER COLUMN "params" SET DEFAULT '{"refundedTransactionAmount":0,"refundedApplicationFeeAmount":0,"platformFee":0,"stripeFee":0,"extraFee":0,"baseFee":0,"personalFee":0}'`); }); } } module.exports = transactionCharge1700733245581;