import { MigrationInterface , QueryRunner } from 'typeorm' ; export class DesktopNotifCreatedAtAndName1601671992912 implements MigrationInterface { name = 'DesktopNotifCreatedAtAndName1601671992912' ; public async up ( queryRunner ) { await queryRunner . query ( `ALTER TABLE "desktop_notif_model" ADD "createdAt" TIMESTAMP NOT NULL DEFAULT now()` ) ; await queryRunner . query ( `ALTER TABLE "desktop_notif_model" ADD "name" text` ) ; } public async down ( queryRunner ) { await queryRunner . query ( `ALTER TABLE "desktop_notif_model" DROP COLUMN "name"` ) ; await queryRunner . query ( `ALTER TABLE "desktop_notif_model" DROP COLUMN "createdAt"` ) ; } }