import { MigrationInterface , QueryRunner } from "typeorm" ; export class addingArticleMigration1558196824347 implements MigrationInterface { public async up ( queryRunner ) { await queryRunner . query ( `CREATE TABLE "article" ("id" SERIAL NOT NULL, "name" character varying NOT NULL, CONSTRAINT "PK_40808690eb7b915046558c0f81b" PRIMARY KEY ("id"))` ) ; } public async down ( queryRunner ) { await queryRunner . query ( `DROP TABLE "article"` ) ; } }