@lomray/microservice-payment-stripe
Version:
Stripe payment microservice based on NodeJS & inverted json.
24 lines (20 loc) • 969 B
JavaScript
;
var tslib = require('tslib');
class transactionApplicationFee1700567137231 {
constructor() {
this.name = 'transactionApplicationFee1700567137231';
}
up(queryRunner) {
return tslib.__awaiter(this, void 0, void 0, function* () {
yield queryRunner.query(`ALTER TABLE "transaction" ADD "applicationFeeId" character varying(66)`);
yield queryRunner.query(`ALTER TABLE "transaction" ALTER COLUMN "params" SET DEFAULT '{"refundedTransactionAmount":0,"refundedApplicationFeeAmount":0,"platformFee":0,"stripeFee":0}'`);
});
}
down(queryRunner) {
return tslib.__awaiter(this, void 0, void 0, function* () {
yield queryRunner.query(`ALTER TABLE "transaction" DROP COLUMN "applicationFeeId"`);
yield queryRunner.query(`ALTER TABLE "transaction" ALTER COLUMN "params" SET DEFAULT '{}'`);
});
}
}
module.exports = transactionApplicationFee1700567137231;