Skip to content

Commit e404a42

Browse files
committed
fix migration
1 parent 2381414 commit e404a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/gitpod-db/src/typeorm/migration/1705393804800-PersonalAccessTokenAllowNullExpireDateonPAT.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const table = "d_b_personal_access_token";
1010

1111
export class PersonalAccessTokenAllowNullExpireDateonPAT1705393804800 implements MigrationInterface {
1212
public async up(queryRunner: QueryRunner): Promise<void> {
13-
await queryRunner.query(`ALTER TABLE ${table} MODIFY expirationTime expirationTime timestamp(6) NULL`);
13+
await queryRunner.query(`ALTER TABLE ${table} MODIFY expirationTime timestamp(6) NULL`);
1414
}
1515

1616
public async down(queryRunner: QueryRunner): Promise<void> {
1717
await queryRunner.query(
18-
`ALTER TABLE ${table} CHANGE expirationTime expirationTime timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)`,
18+
`ALTER TABLE ${table} CHANGE expirationTime timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)`,
1919
);
2020
}
2121
}

0 commit comments

Comments
 (0)