File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
- import { MigrationInterface , QueryRunner } from " typeorm" ;
1
+ import { MigrationInterface , QueryRunner } from ' typeorm' ;
2
2
3
3
export class BloomBackend1718300621138 implements MigrationInterface {
4
- name = 'BloomBackend1718300621138'
4
+ name = 'BloomBackend1718300621138' ;
5
5
6
- public async up ( queryRunner : QueryRunner ) : Promise < void > {
7
- await queryRunner . query ( `ALTER TABLE "user" DROP COLUMN "lastActiveAt"` ) ;
8
- await queryRunner . query ( `ALTER TABLE "user" ADD "lastActiveAt" TIMESTAMP WITH TIME ZONE` ) ;
9
- }
10
-
11
- public async down ( queryRunner : QueryRunner ) : Promise < void > {
12
- await queryRunner . query ( `ALTER TABLE "user" DROP COLUMN "lastActiveAt"` ) ;
13
- await queryRunner . query ( `ALTER TABLE "user" ADD "lastActiveAt" date` ) ;
14
- }
6
+ public async up ( queryRunner : QueryRunner ) : Promise < void > {
7
+ await queryRunner . query ( `ALTER TABLE "user" ADD "lastActiveAt" TIMESTAMP WITH TIME ZONE` ) ;
8
+ }
15
9
10
+ public async down ( queryRunner : QueryRunner ) : Promise < void > {
11
+ await queryRunner . query ( `ALTER TABLE "user" DROP COLUMN "lastActiveAt"` ) ;
12
+ }
16
13
}
You can’t perform that action at this time.
0 commit comments