From b2990b5a2e10e6813abc373dfbf71646f81b8f2a Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 16 Apr 2026 00:01:48 +0200 Subject: [PATCH] Fix up some straggler columns --- src/util/migration/postgres/1776283923000-Int8Fixes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/migration/postgres/1776283923000-Int8Fixes.ts b/src/util/migration/postgres/1776283923000-Int8Fixes.ts index 6983db5f0..0d482d842 100644 --- a/src/util/migration/postgres/1776283923000-Int8Fixes.ts +++ b/src/util/migration/postgres/1776283923000-Int8Fixes.ts @@ -29,7 +29,7 @@ export class Int8Fixes1776283923000 implements MigrationInterface { await queryRunner.query(`ALTER TABLE instance_bans ALTER COLUMN user_id TYPE ${to} USING user_id::${to}`); await queryRunner.query(`ALTER TABLE members ALTER COLUMN last_message_id TYPE ${to} USING last_message_id::${to}`); // oops - await queryRunner.query(`UPDATE read_states SET last_message_id = NULL WHERE last_message_id = 'null' OR last_message_id = 'undefined';`); + await queryRunner.query(`UPDATE read_states SET last_message_id = NULL WHERE last_message_id = 'null' OR last_message_id = 'undefined' OR last_message_id ~ 'fake';`); await queryRunner.query(`ALTER TABLE read_states ALTER COLUMN last_message_id TYPE ${to} USING last_message_id::${to}`); await queryRunner.query(`ALTER TABLE read_states ALTER COLUMN last_acked_id TYPE ${to} USING last_acked_id::${to}`); await queryRunner.query(`ALTER TABLE security_settings ALTER COLUMN guild_id TYPE ${to} USING guild_id::${to}`);