0
0
Fork 0

lintがうるさいんじゃ

This commit is contained in:
Xeltica 2023-02-25 17:16:34 +09:00
parent 69212dd99a
commit bfc725f468
4 changed files with 38 additions and 38 deletions

View file

@ -1,14 +1,14 @@
import {MigrationInterface, QueryRunner} from 'typeorm';
export class Announcement1633841235323 implements MigrationInterface {
name = 'Announcement1633841235323'
name = 'Announcement1633841235323';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('CREATE TABLE "announcement" ("id" SERIAL NOT NULL, "createdAt" TIMESTAMP NOT NULL, "title" character varying(128) NOT NULL, "body" character varying(8192) NOT NULL, "like" integer NOT NULL DEFAULT 0, CONSTRAINT "PK_e0ef0550174fd1099a308fd18a0" PRIMARY KEY ("id"))');
}
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('CREATE TABLE "announcement" ("id" SERIAL NOT NULL, "createdAt" TIMESTAMP NOT NULL, "title" character varying(128) NOT NULL, "body" character varying(8192) NOT NULL, "like" integer NOT NULL DEFAULT 0, CONSTRAINT "PK_e0ef0550174fd1099a308fd18a0" PRIMARY KEY ("id"))');
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('DROP TABLE "announcement"');
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('DROP TABLE "announcement"');
}
}