mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
20 lines
482 B
TypeScript
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;`,
|
|
);
|
|
}
|
|
}
|