@felloh-org/lambda-wrapper 1.1.21 → 1.1.22

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.
@@ -46,10 +46,12 @@ let User = (_dec = (0, _typeorm.Entity)({
46
46
  length: "20"
47
47
  }), _dec8 = (0, _typeorm.Column)({
48
48
  type: "varchar",
49
- length: "50"
49
+ length: "50",
50
+ nullable: true
50
51
  }), _dec9 = (0, _typeorm.Column)({
51
52
  type: "varchar",
52
- length: "50"
53
+ length: "50",
54
+ nullable: true
53
55
  }), _dec10 = (0, _typeorm.CreateDateColumn)({
54
56
  type: 'timestamp with time zone'
55
57
  }), _dec11 = (0, _typeorm.UpdateDateColumn)({
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class nullableUserNames1656063685417 {
4
+ name = 'nullableUserNames1656063685417'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "first_name" DROP NOT NULL`);
8
+ await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "last_name" DROP NOT NULL`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "last_name" SET NOT NULL`);
13
+ await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "first_name" SET NOT NULL`);
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {