From 27cc876e82fdeca09013d03f9d1799fe813565d2 Mon Sep 17 00:00:00 2001 From: BOHA Date: Tue, 28 Apr 2026 11:45:11 +0200 Subject: [PATCH] fix: add missing migration for totp_last_used_counter column Column existed in Prisma schema but had no migration, causing 500 on TOTP login in production where the column was absent. Co-Authored-By: Claude Opus 4.7 --- .../20260428_add_totp_last_used_counter/migration.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 prisma/migrations/20260428_add_totp_last_used_counter/migration.sql diff --git a/prisma/migrations/20260428_add_totp_last_used_counter/migration.sql b/prisma/migrations/20260428_add_totp_last_used_counter/migration.sql new file mode 100644 index 0000000..ebb7d86 --- /dev/null +++ b/prisma/migrations/20260428_add_totp_last_used_counter/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE `users` ADD COLUMN `totp_last_used_counter` INTEGER NULL; \ No newline at end of file