mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-20 09:46:01 -05:00
db: add comment to always check errors in migration
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
committed by
Kristoffer Dalby
parent
1c146f70e9
commit
4b25976288
@@ -504,6 +504,7 @@ AND auth_key_id NOT IN (
|
|||||||
// - NEVER use gorm.AutoMigrate, write the exact migration steps needed
|
// - 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.
|
// - 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.
|
// - 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
|
// Add columns for prefix and hash for pre auth keys, implementing
|
||||||
|
|||||||
Reference in New Issue
Block a user