Document required PostgreSQL role privileges for TTS database migrations#1481
Merged
Conversation
Agent-Logs-Url: https://github.com/TheThingsIndustries/lorawan-stack-docs/sessions/66c1b7c7-6a16-4688-bcdf-565ca0033b40 Co-authored-by: vlasebian <23100181+vlasebian@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add documentation for required Postgres permissions for TTS migrations
Document required PostgreSQL role privileges for TTS database migrations
Apr 23, 2026
vlasebian
approved these changes
Jun 10, 2026
Contributor
KrishnaIyer
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Migration docs described how to run TTS migration commands but not the PostgreSQL privilege level required to execute them successfully. This update clarifies the required DB role to reduce migration failures caused by under-privileged users.
What changed
doc/content/enterprise/docker/upgrading/_index.mdCREATE,ALTER,DROP), so read/write-only table grants are insufficient.Doc example added
{{< warning >}} For PostgreSQL deployments, run migrations with the same PostgreSQL role that owns the existing {{< tts >}} tables (or with a superuser role). Migrations execute DDL statements such as `CREATE`, `ALTER` and `DROP`, so a role with only read/write table privileges is not sufficient. {{< /warning >}}Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
ttui.thethingsindustries.com/usr/local/bin/node node /usr/local/bin/yarn --cwd doc -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -I /libsass @v0.139.4/config/tmp/go-build510302698/b572/ src/include -I om/bep/gowebp@v0--source 2o x64/pkg/tool/lin--destination(dns block)If you need me to access, download, or install something from one of these locations, you can either: