Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/en/runtime/install-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Run `./dewee doctor` on the host to print the version, the config path and wheth

## Upgrades

`dewee upgrade` brings the database schema up to date and runs data migrations. It is safe to run more than once, and the Docker image runs it on every start. Check first with `dewee upgrade --status` or `dewee upgrade --dry-run`. The lower-level `dewee migrate` command (`up`, `down`, `version`, `force`, `goto`) exists for recovery work.
`dewee upgrade` brings the database schema up to date and runs data migrations. It is safe to run more than once, and the Docker image runs it on every start. Check first with `dewee upgrade --status` or `dewee upgrade --dry-run`. The lower-level `dewee migrate` command (`up`, `down`, `version`, `force`, `goto`) exists for recovery work. A binary refuses to start on a database whose schema is newer than it supports, on PostgreSQL and on the Lite (SQLite) edition alike, and the error names both versions. To roll back, run the newer binary's `dewee migrate down` first on PostgreSQL; Lite has no down migrations, so restore the backup taken before the upgrade.

## Backups and restores

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/vi/runtime/install-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Chạy `./dewee doctor` trên máy chủ để in ra phiên bản, đường d

## Nâng cấp

`dewee upgrade` đưa schema cơ sở dữ liệu lên bản mới nhất và chạy các migration dữ liệu. Lệnh an toàn khi chạy nhiều lần, và image Docker tự chạy nó mỗi lần khởi động. Kiểm tra trước bằng `dewee upgrade --status` hoặc `dewee upgrade --dry-run`. Lệnh cấp thấp hơn `dewee migrate` (`up`, `down`, `version`, `force`, `goto`) dành cho việc khắc phục sự cố.
`dewee upgrade` đưa schema cơ sở dữ liệu lên bản mới nhất và chạy các migration dữ liệu. Lệnh an toàn khi chạy nhiều lần, và image Docker tự chạy nó mỗi lần khởi động. Kiểm tra trước bằng `dewee upgrade --status` hoặc `dewee upgrade --dry-run`. Lệnh cấp thấp hơn `dewee migrate` (`up`, `down`, `version`, `force`, `goto`) dành cho việc khắc phục sự cố. Một binary sẽ từ chối khởi động khi schema cơ sở dữ liệu mới hơn phiên bản nó hỗ trợ, trên PostgreSQL cũng như bản Lite (SQLite), và thông báo lỗi nêu rõ cả hai phiên bản. Để quay về bản cũ trên PostgreSQL, chạy `dewee migrate down` bằng binary mới trước; bản Lite không có migration down, nên hãy khôi phục bản sao lưu tạo trước khi nâng cấp.

## Sao lưu và khôi phục

Expand Down
Loading