[PR #41] [MERGED] Migrate to GORM 2.0 #1218

Closed
opened 2025-12-29 02:29:15 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/41
Author: @juanfont
Created: 6/24/2021
Status: Merged
Merged: 6/25/2021
Merged by: @juanfont

Base: mainHead: gorm2


📝 Commits (3)

  • 69ba750 Update Headscale to depend on gorm v2
  • d67be9e go.mod updates
  • d8e0b16 Do not apply the FK migrations on startup

📊 Changes

17 files changed (+59 additions, -63 deletions)

View changed files

📝 api.go (+4 -5)
📝 app.go (+0 -1)
📝 app_test.go (+0 -2)
📝 cli.go (+2 -2)
📝 cli_test.go (+0 -1)
📝 db.go (+35 -14)
📝 go.mod (+3 -1)
📝 go.sum (+5 -13)
📝 machine.go (+0 -1)
📝 machine_test.go (+0 -1)
📝 namespaces.go (+4 -10)
📝 namespaces_test.go (+0 -1)
📝 preauth_keys.go (+4 -4)
📝 preauth_keys_test.go (+0 -3)
📝 routes.go (+0 -1)
📝 routes_test.go (+0 -1)
📝 utils.go (+2 -2)

📄 Description

GORM 2.0, the ORM Headscale uses was fully rewritten for version 2.0, and includes breaking changes.

This series of commits change the codebase to depend on this new version. Nothing too fancy :)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/41 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 6/24/2021 **Status:** ✅ Merged **Merged:** 6/25/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `gorm2` --- ### 📝 Commits (3) - [`69ba750`](https://github.com/juanfont/headscale/commit/69ba750b386144736c2e25efc52499bcd7b7423b) Update Headscale to depend on gorm v2 - [`d67be9e`](https://github.com/juanfont/headscale/commit/d67be9ef586967efe3bc90d154247e3f78a13a58) go.mod updates - [`d8e0b16`](https://github.com/juanfont/headscale/commit/d8e0b165128eefd59821647b992d30f26b633620) Do not apply the FK migrations on startup ### 📊 Changes **17 files changed** (+59 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `api.go` (+4 -5) 📝 `app.go` (+0 -1) 📝 `app_test.go` (+0 -2) 📝 `cli.go` (+2 -2) 📝 `cli_test.go` (+0 -1) 📝 `db.go` (+35 -14) 📝 `go.mod` (+3 -1) 📝 `go.sum` (+5 -13) 📝 `machine.go` (+0 -1) 📝 `machine_test.go` (+0 -1) 📝 `namespaces.go` (+4 -10) 📝 `namespaces_test.go` (+0 -1) 📝 `preauth_keys.go` (+4 -4) 📝 `preauth_keys_test.go` (+0 -3) 📝 `routes.go` (+0 -1) 📝 `routes_test.go` (+0 -1) 📝 `utils.go` (+2 -2) </details> ### 📄 Description GORM 2.0, the ORM Headscale uses was fully rewritten for version 2.0, and includes breaking changes. This series of commits change the codebase to depend on this new version. Nothing too fancy :) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:29:15 +01:00
adam closed this issue 2025-12-29 02:29:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1218