-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
upgrade postgres reference to 14 in docs #19416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -187,7 +187,7 @@ services: | |||||
+ - db | ||||||
+ | ||||||
+ db: | ||||||
+ image: postgres:13 | ||||||
+ image: postgres:14 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
+ restart: always | ||||||
+ environment: | ||||||
+ - POSTGRES_USER=gitea | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -172,7 +172,7 @@ services: | |||||
+ - db | ||||||
+ | ||||||
+ db: | ||||||
+ image: postgres:13 | ||||||
+ image: postgres:14 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
+ restart: always | ||||||
+ environment: | ||||||
+ - POSTGRES_USER=gitea | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -36,7 +36,7 @@ TEST_MYSQL_HOST=localhost:3306 TEST_MYSQL_DBNAME=test TEST_MYSQL_USERNAME=root T | |||||
## 如何使用 pgsql 数据库进行集成测试 | ||||||
同上,首先在 docker 容器里部署一个 pgsql 数据库 | ||||||
``` | ||||||
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:13 #(just ctrl-c to stop db and clean the container) | ||||||
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:14 #(just ctrl-c to stop db and clean the container) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’m generally always hesitant to document “latest” as the tag someone should use, as it can change meaning without expectation |
||||||
``` | ||||||
之后便可以基于这个数据库进行集成测试 | ||||||
``` | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.