barkey/packages/backend/migration/1738098171990-robotsTxt.js
Kinetix 993532bc1f Adding robots.txt override via admin control panel
This is a requested low priority feature in #418 - I created the changes
to follow similarly to how the Instance Description is handled.
2025-01-28 15:57:45 -08:00

16 lines
436 B
JavaScript

/*
* SPDX-FileCopyrightText: marie and other Sharkey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class RobotsTxt1738098171990 {
name = 'RobotsTxt1738098171990'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "robotsTxt" character varying(2048)`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "robotsTxt"`);
}
}