diff --git a/migration/1732494017630-addScoreTimestampToUser.ts b/migration/1732495066795-addScoreTimestampToUser.ts similarity index 68% rename from migration/1732494017630-addScoreTimestampToUser.ts rename to migration/1732495066795-addScoreTimestampToUser.ts index 278422c0e..864b442e8 100644 --- a/migration/1732494017630-addScoreTimestampToUser.ts +++ b/migration/1732495066795-addScoreTimestampToUser.ts @@ -1,13 +1,13 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -export class AddScoreTimestampToUser1732494017630 +export class AddScoreTimestampToUser1732495066795 implements MigrationInterface { - name = 'AddScoreTimestampToUser1732494017630'; + name = 'AddScoreTimestampToUser1732495066795'; public async up(queryRunner: QueryRunner): Promise { await queryRunner.query( - `ALTER TABLE "user" ADD "passportScoreUpdateTimestamp" integer`, + `ALTER TABLE "user" ADD "passportScoreUpdateTimestamp" bigint`, ); } diff --git a/src/entities/user.ts b/src/entities/user.ts index 4270336d4..1369ea595 100644 --- a/src/entities/user.ts +++ b/src/entities/user.ts @@ -117,8 +117,8 @@ export class User extends BaseEntity { @Column({ type: 'real', nullable: true, default: null }) passportScore?: number; - @Field(_type => Number, { nullable: true }) - @Column({ nullable: true, default: null }) + @Field(_type => BigInt, { nullable: true }) + @Column('bigint', { nullable: true, default: null }) passportScoreUpdateTimestamp?: number; @Field(_type => Number, { nullable: true })