@felloh-org/lambda-wrapper 1.2.7 → 1.2.8
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.
package/dist/migration/payment/1661876528683-organisation-payment-provider-cleanup-weight-attr.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class organisationPaymentProviderCleanupWeightAttr1661876528683 {
|
|
4
|
+
name = 'organisationPaymentProviderCleanupWeightAttr1661876528683'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" DROP COLUMN "weight"`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD "weight" integer NOT NULL DEFAULT '1'`);
|
|
12
|
+
}
|
|
13
|
+
}
|