import { MigrationInterface, QueryRunner } from "typeorm"; export class AddFeeds1729780814885 implements MigrationInterface { name = 'AddFeeds1729780814885' public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(`CREATE TABLE "feeds" ("id" SERIAL NOT NULL, "author_id" character varying, "image_url" character varying, "title" character varying NOT NULL, "description" character varying, "create_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_3dafbf766ecbb1eb2017732153f" PRIMARY KEY ("id"))`); } public async down(queryRunner: QueryRunner): Promise { await queryRunner.query(`DROP TABLE "feeds"`); } }