@felloh-org/lambda-wrapper 1.1.19 → 1.1.20

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.
@@ -49,7 +49,13 @@ let User = (_dec = (0, _typeorm.Entity)({
49
49
  }), _dec9 = (0, _typeorm.Column)({
50
50
  type: "varchar",
51
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)({
52
+ }), _dec10 = (0, _typeorm.CreateDateColumn)({
53
+ type: 'timestamp with time zone'
54
+ }), _dec11 = (0, _typeorm.UpdateDateColumn)({
55
+ type: 'timestamp with time zone'
56
+ }), _dec12 = (0, _typeorm.DeleteDateColumn)({
57
+ type: 'timestamp with time zone'
58
+ }), _dec13 = (0, _typeorm.ManyToMany)(() => _organisation.default, organisation => organisation.users), _dec14 = (0, _typeorm.JoinTable)({
53
59
  name: "user_organisation",
54
60
  schema: "user",
55
61
  joinColumn: {
@@ -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
+ }
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.20",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {