@felloh-org/lambda-wrapper 1.1.19 → 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.
@@ -35,7 +35,8 @@ let User = (_dec = (0, _typeorm.Entity)({
35
35
  nullable: true
36
36
  }), _dec5 = (0, _typeorm.Column)({
37
37
  type: "varchar",
38
- length: "150"
38
+ length: "150",
39
+ nullable: true
39
40
  }), _dec6 = (0, _typeorm.Column)({
40
41
  type: "varchar",
41
42
  length: "50",
@@ -45,11 +46,19 @@ let User = (_dec = (0, _typeorm.Entity)({
45
46
  length: "20"
46
47
  }), _dec8 = (0, _typeorm.Column)({
47
48
  type: "varchar",
48
- length: "50"
49
+ length: "50",
50
+ nullable: true
49
51
  }), _dec9 = (0, _typeorm.Column)({
50
52
  type: "varchar",
51
- length: "50"
52
- }), _dec10 = (0, _typeorm.CreateDateColumn)(), _dec11 = (0, _typeorm.UpdateDateColumn)(), _dec12 = (0, _typeorm.DeleteDateColumn)(), _dec13 = (0, _typeorm.ManyToMany)(() => _organisation.default, organisation => organisation.users), _dec14 = (0, _typeorm.JoinTable)({
53
+ length: "50",
54
+ nullable: true
55
+ }), _dec10 = (0, _typeorm.CreateDateColumn)({
56
+ type: 'timestamp with time zone'
57
+ }), _dec11 = (0, _typeorm.UpdateDateColumn)({
58
+ type: 'timestamp with time zone'
59
+ }), _dec12 = (0, _typeorm.DeleteDateColumn)({
60
+ type: 'timestamp with time zone'
61
+ }), _dec13 = (0, _typeorm.ManyToMany)(() => _organisation.default, organisation => organisation.users), _dec14 = (0, _typeorm.JoinTable)({
53
62
  name: "user_organisation",
54
63
  schema: "user",
55
64
  joinColumn: {
@@ -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
+ }
@@ -0,0 +1,22 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class timezonedUsers1656057725099 {
4
+ name = 'timezonedUsers1656057725099'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "created_at"`);
8
+ await queryRunner.query(`ALTER TABLE "user"."user" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
9
+ await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "updated_at"`);
10
+ await queryRunner.query(`ALTER TABLE "user"."user" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
11
+ await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "deleted_at"`);
12
+ await queryRunner.query(`ALTER TABLE "user"."user" ADD "deleted_at" TIMESTAMP WITH TIME ZONE`);}
13
+
14
+ async down(queryRunner) {
15
+ await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "deleted_at"`);
16
+ await queryRunner.query(`ALTER TABLE "user"."user" ADD "deleted_at" TIMESTAMP`);
17
+ await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "updated_at"`);
18
+ await queryRunner.query(`ALTER TABLE "user"."user" ADD "updated_at" TIMESTAMP NOT NULL DEFAULT now()`);
19
+ await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "created_at"`);
20
+ await queryRunner.query(`ALTER TABLE "user"."user" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
21
+ }
22
+ }
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class nullableUserEmail1656062997392 {
4
+ name = 'nullableUserEmail1656062997392'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "email" DROP NOT NULL`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "email" SET NOT NULL`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.1.19",
3
+ "version": "1.1.22",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {