feat: implement command functionality with new CommandController, update Query entity, and enhance query execution with headers support
This commit is contained in:
15
src/migrations/1759387204103-commands.ts
Normal file
15
src/migrations/1759387204103-commands.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class Commands1759387204103 implements MigrationInterface {
|
||||
name = "Commands1759387204103";
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE \`query\` ADD \`isCommand\` tinyint NOT NULL DEFAULT '0'`
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`query\` DROP COLUMN \`isCommand\``);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user