summary refs log tree commit diff
path: root/src/util/migrations/1634426540271-MigrationTimestamp.ts
blob: fb59690654217fd05d15a239b1b6be8a4291d19b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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> {}
}