hippofish/packages/backend/src/migration/1585772678853-ap-url.ts

13 lines
422 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class apUrl1585772678853 implements MigrationInterface {
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "note" ADD "url" character varying(512)`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "url"`, undefined);
}
}