[PR #4968] [MERGED] remove backtics from postgresql migrations #2674

Closed
opened 2025-10-09 18:09:29 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/4968
Author: @stefan0xC
Created: 9/19/2024
Status: Merged
Merged: 9/19/2024
Merged by: @BlackDex

Base: mainHead: fix-postfix-migrations


📝 Commits (1)

  • e3aa047 remove backtics from postgresql migrations

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 migrations/postgresql/2024-09-04-091351_use_device_type_for_mails/down.sql (+1 -1)
📝 migrations/postgresql/2024-09-04-091351_use_device_type_for_mails/up.sql (+1 -1)

📄 Description

postgres does not support backtics for escaping keywords so we shouldn't use them in postgres migrations.
should fix the issue reported here: https://github.com/dani-garcia/vaultwarden/pull/4916#issuecomment-2361033931


🔄 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/dani-garcia/vaultwarden/pull/4968 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 9/19/2024 **Status:** ✅ Merged **Merged:** 9/19/2024 **Merged by:** [@BlackDex](https://github.com/BlackDex) **Base:** `main` ← **Head:** `fix-postfix-migrations` --- ### 📝 Commits (1) - [`e3aa047`](https://github.com/dani-garcia/vaultwarden/commit/e3aa047f31184f819b78d000b93c44f95c2595de) remove backtics from postgresql migrations ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `migrations/postgresql/2024-09-04-091351_use_device_type_for_mails/down.sql` (+1 -1) 📝 `migrations/postgresql/2024-09-04-091351_use_device_type_for_mails/up.sql` (+1 -1) </details> ### 📄 Description postgres does [not support backtics for escaping keywords](https://wiki.postgresql.org/wiki/Things_to_find_out_about_when_moving_from_MySQL_to_PostgreSQL) so we shouldn't use them in postgres migrations. should fix the issue reported here: https://github.com/dani-garcia/vaultwarden/pull/4916#issuecomment-2361033931 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:09:29 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2674