Import 0.x stores into SQLite on first start

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, sqlite
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start by reading the implementation and migration plan for dependency #52, then inspect how the plugin currently reads its 0.x HOCON stores file and initializes SQLite. Add coverage using a sample legacy file with malformed entries. Done means the first start imports stores, items, prices, and balances, reports skipped entries, preserves the old file under a migrated name, and a restart does not import again.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Problem

Servers upgrading to 1.0 have their stores in the old HOCON file. They need to keep them when storage moves to SQLite.

Scope

  • On the first start with an empty database, read the old stores file and write everything into SQLite.
  • Rename the old file afterward (for example stores.conf.migrated) instead of deleting it.
  • Log a clear summary: stores imported, and anything skipped and why.
  • Convert custom messages in config.yml to the new message format, if the messaging rework (#20) has landed by then.

Done when

  • A 0.4.0 data folder upgrades to 1.0 with every store, item, price and balance intact.
  • Restarting after the import doesn't import again.
  • Tests cover a sample 0.x file, including malformed entries.

Depends on #52.

Ngôn ngữ chính
Java
Star
1
Fork
0
Merge trung bình
2 giờ 35 phút
Pull request đã merge (30 ngày)
14

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 BrendonButler/Shops

Tất cả issue của BrendonButler/Shops

Issue tương tự

Thêm issue về Java

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.