mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* split data and db migrations * comment audit logs * make prod script to print logs * wrap data migrations in single transaction
10 lines
428 B
TypeScript
10 lines
428 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class LockMigrationsTable1234567891000 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query("DELETE FROM migrations where name = 'LockMigrationsTable1234567890000'");
|
|
await queryRunner.query('LOCK TABLE migrations;');
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
|
}
|