✨ migration for timestamp migrations

This commit is contained in:
Flam3rboy
2021-10-17 01:23:51 +02:00
parent f0c17bb28f
commit 860e86ad19
2 changed files with 16 additions and 1 deletions
@@ -0,0 +1,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> {}
}