mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-18 00:45:06 +00:00
db: add comment to always check errors in migration
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
1c146f70e9
commit
4b25976288
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue