mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-26 16:15:19 +00:00
Merge branch 'master' into users-fix2
This commit is contained in:
@@ -53,7 +53,7 @@ export class ApplicationCommand extends BaseClass {
|
||||
@Column({ nullable: true, type: "simple-json" })
|
||||
description_localizations?: Record<string, string>;
|
||||
|
||||
@Column({ type: "simple-json", default: [] })
|
||||
@Column({ type: "simple-json", default: "[]" })
|
||||
options: ApplicationCommandOption[];
|
||||
|
||||
@Column({ nullable: true, type: String })
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class FixGifStickersFormatType1762611552514 implements MigrationInterface {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`UPDATE "stickers" SET "format_type" = 4 WHERE "format_type" = 0;`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`UPDATE "stickers" SET "format_type" = 0 WHERE "format_type" = 4;`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user