standardnotes-server/packages/scheduler/migrations/1655282246342-add_job_names.ts
2022-06-17 13:06:44 +02:00

13 lines
453 B
TypeScript

import { MigrationInterface, QueryRunner } from 'typeorm'
export class addJobNames1655282246342 implements MigrationInterface {
name = 'addJobNames1655282246342'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE `jobs` ADD `name` varchar(255) NOT NULL')
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE `jobs` DROP COLUMN `name`')
}
}