summary refs log tree commit diff
path: root/util/src/migrations/1634426540271-MigrationTimestamp.ts
blob: 3208b25b2925d957032d256b922a4fd73e2fb7f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";

export class MigrationTimestamp1634426540271 implements MigrationInterface {
	name = "MigrationTimestamp1634426540271";

	public async up(queryRunner: QueryRunner): Promise<void> {
		await queryRunner.changeColumn(
			"migrations",
			"timestamp",
			new TableColumn({ name: "timestampe", type: "bigint", isNullable: false })
		);
	}

	public async down(queryRunner: QueryRunner): Promise<void> {}
}