Allow making archives permanent. Make archives permanent when attached to a case. Add log file metadata dynamically when served (instead of in the body directly). Add missing index on archives.expires_at.
This commit is contained in:
parent
10d757f588
commit
ab71481b8f
5 changed files with 59 additions and 13 deletions
21
src/migrations/1547392046629-AddIndexToArchivesExpiresAt.ts
Normal file
21
src/migrations/1547392046629-AddIndexToArchivesExpiresAt.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { MigrationInterface, QueryRunner, TableColumn, TableIndex } from "typeorm";
|
||||
|
||||
export class AddIndexToArchivesExpiresAt1547392046629 implements MigrationInterface {
|
||||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.createIndex(
|
||||
"archives",
|
||||
new TableIndex({
|
||||
columnNames: ["expires_at"]
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.dropIndex(
|
||||
"archives",
|
||||
new TableIndex({
|
||||
columnNames: ["expires_at"]
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue