mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
f48d579f64
Summary: The summary includes a count of documents that are approaching limits, in grace period, or delete-only. The endpoint is only accessible to site owners, and is currently unused. A follow-up diff will add usage banners to the site home page, which will use the response from the endpoint to communicate usage information to owners. Test Plan: Browser and server tests. Reviewers: alexmojaki Reviewed By: alexmojaki Differential Revision: https://phab.getgrist.com/D3420
19 lines
531 B
TypeScript
19 lines
531 B
TypeScript
import {nativeValues} from "app/gen-server/lib/values";
|
|
import {MigrationInterface, QueryRunner, TableColumn} from "typeorm";
|
|
|
|
export class DocumentUsage1651469582887 implements MigrationInterface {
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.addColumn("docs", new TableColumn({
|
|
name: "usage",
|
|
type: nativeValues.jsonType,
|
|
isNullable: true
|
|
}));
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.dropColumn("docs", "usage");
|
|
}
|
|
|
|
}
|