hippofish/packages/backend/src/migration/1636697408073-remove-via-mobile.ts

13 lines
428 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class removeViaMobile1636697408073 implements MigrationInterface {
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "viaMobile"`);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "note" ADD "viaMobile" boolean NOT NULL DEFAULT false`,
);
}
}