1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-01-08 20:03:49 +01:00

db: add comment to always check errors in migration

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2025-11-13 15:53:48 +01:00 committed by Kristoffer Dalby
parent 1c146f70e9
commit 4b25976288

View File

@ -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