From 4b25976288b1613a1d5d56ec95ce604462838809 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 13 Nov 2025 15:53:48 +0100 Subject: [PATCH] db: add comment to always check errors in migration Signed-off-by: Kristoffer Dalby --- hscontrol/db/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hscontrol/db/db.go b/hscontrol/db/db.go index 1a2693aa..b3e6b704 100644 --- a/hscontrol/db/db.go +++ b/hscontrol/db/db.go @@ -504,6 +504,7 @@ AND auth_key_id NOT IN ( // - NEVER use gorm.AutoMigrate, write the exact migration steps needed // - AutoMigrate depends on the struct staying exactly the same, which it won't over time. // - Never write migrations that requires foreign keys to be disabled. + // - ALL errors in migrations must be handled properly. { // Add columns for prefix and hash for pre auth keys, implementing