Files
kodi-api-server/migrations/1673010885172-AddWebtorrentColumnsToFilesTable.ts
T
2023-01-06 15:58:49 +02:00

20 lines
482 B
TypeScript

import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddWebtorrentColumnsToFilesTable1673010885172
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`alter table files
add webtorrent INTEGER;`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`alter table files
drop column webtorrent;`,
);
}
}