Backup restore copies tables by column position

Đang mở
#2,044 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Wikid82 đang làm issue này rồi.

Từ ngày 25/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

backend database

What: RehydrateLiveDatabase restores each table with INSERT INTO t SELECT * FROM restore_src.t, which matches columns by position. When a table's column order differs between the live database and the backup (for example a fresh install versus a database upgraded by adding a column, which appends it at the end), values can shift into the wrong columns without an error.

Where: backend/internal/services/backup_service.go:1600-1625.

Severity: medium.

Suggested approach: copy using the explicit list of column names that both schemas share, and add a test with differing column order.

Found during plan review of the encryption key work.

Ngôn ngữ chính
Go
Star
17
Fork
2
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
173

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Wikid82/Charon

Tất cả issue của Wikid82/Charon

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.