mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 21:08:52 -07:00
Add missing migrations (#7552)
This commit is contained in:
parent
0f0803052c
commit
ae37cb83a8
2 changed files with 25 additions and 0 deletions
13
migration/1622679304522-user-profile-description-length.ts
Normal file
13
migration/1622679304522-user-profile-description-length.ts
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
|
|
||||||
|
export class userProfileDescriptionLength1622679304522 implements MigrationInterface {
|
||||||
|
name = 'userProfileDescriptionLength1622679304522';
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "description" TYPE character varying(2048)`, undefined);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "description" TYPE character varying(1024)`, undefined);
|
||||||
|
}
|
||||||
|
}
|
12
migration/1622681548499-log-message-length.ts
Normal file
12
migration/1622681548499-log-message-length.ts
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
|
|
||||||
|
export class logMessageLength1622681548499 implements MigrationInterface {
|
||||||
|
name = 'logMessageLength1622681548499';
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(2048)`, undefined);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(1024)`, undefined);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue