[PR #27] [MERGED] Remove dependency on Postgres' jsonb field #1209

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

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/27
Author: @juanfont
Created: 5/15/2021
Status: Merged
Merged: 5/15/2021
Merged by: @juanfont

Base: mainHead: change-json-field


📝 Commits (3)

📊 Changes

6 files changed (+174 additions, -54 deletions)

View changed files

📝 api.go (+5 -5)
📝 go.mod (+11 -11)
📝 go.sum (+146 -26)
📝 machine.go (+8 -8)
📝 routes.go (+2 -2)
📝 routes_test.go (+2 -2)

📄 Description

Since GORM 2.0 its possible to rely on the tool for custom field support. That includes JSON in the DB.

The final goal of this is to add support for sqlite in Headscale, to easy the process of adding tests.


🔄 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/27 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 5/15/2021 **Status:** ✅ Merged **Merged:** 5/15/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `change-json-field` --- ### 📝 Commits (3) - [`e0d916b`](https://github.com/juanfont/headscale/commit/e0d916bb5a7d4515fd4383f9c256779f86b0e435) Remove dependency on postgres' jsonb - [`84aba25`](https://github.com/juanfont/headscale/commit/84aba256bb9184c9be2ee59ef77f2d6a81c98b5d) Added some deps + updates - [`ad4a61c`](https://github.com/juanfont/headscale/commit/ad4a61cc7b38399930fb5e2d098d7a3afd7cb430) update in sum ### 📊 Changes **6 files changed** (+174 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `api.go` (+5 -5) 📝 `go.mod` (+11 -11) 📝 `go.sum` (+146 -26) 📝 `machine.go` (+8 -8) 📝 `routes.go` (+2 -2) 📝 `routes_test.go` (+2 -2) </details> ### 📄 Description Since GORM 2.0 its possible to rely on the tool for custom field support. That includes JSON in the DB. The final goal of this is to add support for sqlite in Headscale, to easy the process of adding tests. --- <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:13 +01:00
adam closed this issue 2025-12-29 02:29:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1209