1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-11-27 20:04:00 +01:00
juanfont.headscale/hscontrol/db
Kristoffer Dalby 1c146f70e9 db: remove _schema from migration tests
Previously we tested migrations on schemas and dumps
of old databases.

The problems with testing migrations against the schemas
is that the migration table is empty, so we try to run
migrations that are already ran on that schema, which might
blow up.

This commit removes the schema approach and just leaves all
the dumps, which include the migration table.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-11-13 09:46:40 -06:00
..
sqliteconfig db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
testdata/sqlite db: remove _schema from migration tests 2025-11-13 09:46:40 -06:00
api_key_test.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
api_key.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
db_test.go db: remove _schema from migration tests 2025-11-13 09:46:40 -06:00
db.go hscontrol/db: add init schema, drop pre-0.25 support (#2883) 2025-11-13 04:44:10 -06:00
ephemeral_garbage_collector_test.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
ip_test.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
ip.go fix: free ips from usedIps ipset on DeleteNode 2025-11-11 17:27:00 -06:00
node_test.go state: use AllApprovedRoutes instead of SubnetRoutes 2025-11-02 13:19:59 +01:00
node.go hscontrol: use Updates() instead of Save() for partial updates 2025-11-11 12:47:48 -06:00
policy.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
preauth_keys_test.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
preauth_keys.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
schema.sql hscontrol/db: add init schema, drop pre-0.25 support (#2883) 2025-11-13 04:44:10 -06:00
suite_test.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
text_serialiser.go Refactor to use reflect.TypeFor 2025-08-23 20:43:49 +02:00
user_update_test.go hscontrol: use Updates() instead of Save() for partial updates 2025-11-11 12:47:48 -06:00
users_test.go types: make pre auth key use bcrypt (#2853) 2025-11-12 16:36:36 +01:00
users.go hscontrol/db: fix RenameUser to use Updates() 2025-11-11 12:47:48 -06:00