lintがうるさいんじゃ
This commit is contained in:
parent
69212dd99a
commit
bfc725f468
4 changed files with 38 additions and 38 deletions
|
@ -1,7 +1,7 @@
|
||||||
import {MigrationInterface, QueryRunner} from 'typeorm';
|
import {MigrationInterface, QueryRunner} from 'typeorm';
|
||||||
|
|
||||||
export class Announcement1633841235323 implements MigrationInterface {
|
export class Announcement1633841235323 implements MigrationInterface {
|
||||||
name = 'Announcement1633841235323'
|
name = 'Announcement1633841235323';
|
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
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"))');
|
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"))');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {MigrationInterface, QueryRunner} from 'typeorm';
|
import {MigrationInterface, QueryRunner} from 'typeorm';
|
||||||
|
|
||||||
export class addTokenVersion1643366857976 implements MigrationInterface {
|
export class addTokenVersion1643366857976 implements MigrationInterface {
|
||||||
name = 'addTokenVersion1643366857976'
|
name = 'addTokenVersion1643366857976';
|
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
await queryRunner.query('ALTER TABLE "user" ADD "tokenVersion" integer NOT NULL DEFAULT 1');
|
await queryRunner.query('ALTER TABLE "user" ADD "tokenVersion" integer NOT NULL DEFAULT 1');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {MigrationInterface, QueryRunner} from 'typeorm';
|
import {MigrationInterface, QueryRunner} from 'typeorm';
|
||||||
|
|
||||||
export class alertModeBoth1644940446672 implements MigrationInterface {
|
export class alertModeBoth1644940446672 implements MigrationInterface {
|
||||||
name = 'alertModeBoth1644940446672'
|
name = 'alertModeBoth1644940446672';
|
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
await queryRunner.query('ALTER TYPE "public"."user_alertmode_enum" RENAME TO "user_alertmode_enum_old"');
|
await queryRunner.query('ALTER TYPE "public"."user_alertmode_enum" RENAME TO "user_alertmode_enum_old"');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {MigrationInterface, QueryRunner} from 'typeorm';
|
import {MigrationInterface, QueryRunner} from 'typeorm';
|
||||||
|
|
||||||
export class expandTemplateLength1663226831484 implements MigrationInterface {
|
export class expandTemplateLength1663226831484 implements MigrationInterface {
|
||||||
name = 'expandTemplateLength1663226831484'
|
name = 'expandTemplateLength1663226831484';
|
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
await queryRunner.query('ALTER TABLE "user" ALTER COLUMN "template" TYPE character varying(1024)');
|
await queryRunner.query('ALTER TABLE "user" ALTER COLUMN "template" TYPE character varying(1024)');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue