Kristoffer Dalby
c6736dd6d6
db: add sqlite "source of truth" schema
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-07-07 15:48:38 +01:00
Kristoffer Dalby
b4ac8cd9a3
hscontrol/db: add migration setting non existing pak on nodes to null ( #2412 )
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-07 10:22:23 +01:00
Kristoffer Dalby
9e3f945eda
fix postgres migration issue with 0.24 ( #2367 )
...
* fix postgres migration issue with 0.24
Fixes #2351
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* add postgres migration test for 2351
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-23 14:58:42 +01:00
Kristoffer Dalby
bc9e83b52e
use gorm serialiser instead of custom hooks ( #2156 )
...
* add sqlite to debug/test image
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* test using gorm serialiser instead of custom hooks
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-10-02 11:41:58 +02:00
Kristoffer Dalby
5eda9c8d2d
denormalise PreAuthKey tags ( #2155 )
...
this commit denormalises the Tags related to a Pre auth key
back onto the preauthkey table and struct as a string list.
There was not really any real normalisation here as we just added
a bunch of duplicate tags with new IDs and preauthkeyIDs, lots of
GORM cermony but no actual advantage.
This work is the start to fixup tags which currently are not working
as they should.
Updates #1369
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-09-29 13:00:27 +02:00
Kristoffer Dalby
cf6a606d74
fix route table migration wiping routes 0.22 -> 0.23 ( #2076 )
2024-08-27 18:54:28 +02:00