12 lines
476 B
TypeScript
Executable File
12 lines
476 B
TypeScript
Executable File
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class SetInvoiceNumericIdStartValue1740742921699 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "invoice" ALTER COLUMN "numericId" RESTART WITH 1000;`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "invoice" ALTER COLUMN "numericId" RESTART WITH 1;`);
|
|
}
|
|
}
|