[PR #1171] [MERGED] Migrate namespace_id to user_id column in machine and pak #1934

Closed
opened 2025-12-29 03:18:56 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1171
Author: @kradalby
Created: 1/26/2023
Status: Merged
Merged: 1/26/2023
Merged by: @kradalby

Base: mainHead: fix-namespace-id-column


📝 Commits (1)

  • 8afe7d7 Migrate namespace_id to user_id column in machine and pak

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 db.go (+3 -0)

📄 Description

Fixes #1166

This will probably not work for people who has already upgraded to the beta-1.

Users who are using beta-1 should either:

  • delete the empty user_id column in machines and pre_auth_keys (make sure its empty...) and rerun with beta-2
  • rename the column manually from namespace_id to user_id
  • use beta-2 from their database backup of 0.18.x

Signed-off-by: Kristoffer Dalby kristoffer@tailscale.com


🔄 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/1171 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 1/26/2023 **Status:** ✅ Merged **Merged:** 1/26/2023 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `fix-namespace-id-column` --- ### 📝 Commits (1) - [`8afe7d7`](https://github.com/juanfont/headscale/commit/8afe7d7e41625c36ea138459d99c0f86666336c8) Migrate namespace_id to user_id column in machine and pak ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `db.go` (+3 -0) </details> ### 📄 Description Fixes #1166 This will probably not work for people who has already upgraded to the beta-1. Users who are using beta-1 should either: - delete the _empty_ `user_id` column in `machines` and `pre_auth_keys` (make sure its empty...) and rerun with beta-2 - rename the column manually from `namespace_id` to `user_id` - use beta-2 from their database backup of 0.18.x Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> --- <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 03:18:56 +01:00
adam closed this issue 2025-12-29 03:18:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1934