@felloh-org/lambda-wrapper 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,13 +55,16 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
55
55
|
nullable: true
|
|
56
56
|
}), _dec13 = (0, _typeorm.Column)({
|
|
57
57
|
type: "varchar",
|
|
58
|
-
length: "200"
|
|
58
|
+
length: "200",
|
|
59
|
+
nullable: true
|
|
59
60
|
}), _dec14 = (0, _typeorm.Column)({
|
|
60
61
|
type: "varchar",
|
|
61
|
-
length: "200"
|
|
62
|
+
length: "200",
|
|
63
|
+
nullable: true
|
|
62
64
|
}), _dec15 = (0, _typeorm.Column)({
|
|
63
65
|
type: "varchar",
|
|
64
|
-
length: "200"
|
|
66
|
+
length: "200",
|
|
67
|
+
nullable: true
|
|
65
68
|
}), _dec16 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.payment_link), _dec17 = (0, _typeorm.Column)({
|
|
66
69
|
type: "boolean",
|
|
67
70
|
default: true
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class nullablePaymentLinkUrls1662027037400 {
|
|
4
|
+
name = 'nullablePaymentLinkUrls1662027037400'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "success_url" DROP NOT NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "failure_url" DROP NOT NULL`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "cancel_url" DROP NOT NULL`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async down(queryRunner) {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "cancel_url" SET NOT NULL`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "failure_url" SET NOT NULL`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "success_url" SET NOT NULL`);
|
|
16
|
+
}
|
|
17
|
+
}
|