hippofish/packages/backend/migration/1704744370000-add-donation-url.js
2024-06-15 11:36:55 +01:00

15 lines
448 B
JavaScript

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