mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-11 14:44:50 +00:00
fix: getting message pinss
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class MessagePinnedAt1752383879533 implements MigrationInterface {
|
||||
name = "MessagePinnedAt1752383879533";
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "messages" ADD "pinned_at" TIMESTAMP`,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "messages" DROP COLUMN "pinned_at"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user