mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-09 04:47:41 +00:00
20 lines
514 B
TypeScript
20 lines
514 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddStreamProviderColumnToFilesTable1672820632908
|
|
implements MigrationInterface
|
|
{
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`alter table files
|
|
add stream_provider TEXT default 'fs' not null;`,
|
|
);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`alter table files
|
|
drop column stream_provider;`,
|
|
);
|
|
}
|
|
}
|