feat: Security

This commit is contained in:
2026-06-05 18:34:01 +02:00
parent ee293d7daf
commit 45675192a5
134 changed files with 4128 additions and 446 deletions

View File

@@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
export class MessageIntegrity1000000000013 implements MigrationInterface {
name = 'MessageIntegrity1000000000013';
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "messages" ADD COLUMN "revision" integer NOT NULL DEFAULT 0');
await queryRunner.query('ALTER TABLE "messages" ADD COLUMN "headHash" text');
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "messages" DROP COLUMN "headHash"');
await queryRunner.query('ALTER TABLE "messages" DROP COLUMN "revision"');
}
}