Move install-db-schema from afterReset to beforeAllMigrations

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
postgresql
Lĩnh vực
backend, databases

Hướng nghiên cứu

Bắt đầu bằng cách xác định cấu hình vòng đời migration cho afterReset và beforeAllMigrations, sau đó theo dõi nơi yarn workspace @app/worker install-db-schema được gọi và script wipe-if-demo đã bị xóa trong Procfile đã ảnh hưởng đến production như thế nào. Được xem là hoàn tất khi schema của worker tồn tại trước các migration và việc registration không còn tạo ra lỗi PostgreSQL ERR_3F000.

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

Mô tả

enhancement good first issue

I believe this was handled by the wipe-if-demo script in the demo but I needed to manually run it in production since I removed that script from the Procfile. Not a huge deal but figured I would at least document it here to save someone else some time as it threw me for a little loop when I got the Postgres error.

Got the following error when I tried to register since the worker schema wasn't there

Registration failed (Error code: ERR_3F000)

Once I got the postgres logs running right on RDS it was fairly obvious, just had to run

yarn workspace @app/worker install-db-schema

and everything worked as intended

Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
226
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 graphile/starter

Tất cả issue của graphile/starter

Issue tương tự

Thêm issue về TypeScript

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.