mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-20 04:37:13 +00:00
upgrade postgres refrence to 14 (#19416)
This commit is contained in:
parent
deffe9e525
commit
695c4b4b0e
|
@ -147,7 +147,7 @@ services:
|
||||||
+ - db
|
+ - db
|
||||||
+
|
+
|
||||||
+ db:
|
+ db:
|
||||||
+ image: postgres:13
|
+ image: postgres:14
|
||||||
+ restart: always
|
+ restart: always
|
||||||
+ environment:
|
+ environment:
|
||||||
+ - POSTGRES_USER=gitea
|
+ - POSTGRES_USER=gitea
|
||||||
|
|
|
@ -187,7 +187,7 @@ services:
|
||||||
+ - db
|
+ - db
|
||||||
+
|
+
|
||||||
+ db:
|
+ db:
|
||||||
+ image: postgres:13
|
+ image: postgres:14
|
||||||
+ restart: always
|
+ restart: always
|
||||||
+ environment:
|
+ environment:
|
||||||
+ - POSTGRES_USER=gitea
|
+ - POSTGRES_USER=gitea
|
||||||
|
|
|
@ -172,7 +172,7 @@ services:
|
||||||
+ - db
|
+ - db
|
||||||
+
|
+
|
||||||
+ db:
|
+ db:
|
||||||
+ image: postgres:13
|
+ image: postgres:14
|
||||||
+ restart: always
|
+ restart: always
|
||||||
+ environment:
|
+ environment:
|
||||||
+ - POSTGRES_USER=gitea
|
+ - POSTGRES_USER=gitea
|
||||||
|
|
|
@ -36,7 +36,7 @@ TEST_MYSQL_HOST=localhost:3306 TEST_MYSQL_DBNAME=test TEST_MYSQL_USERNAME=root T
|
||||||
## 如何使用 pgsql 数据库进行集成测试
|
## 如何使用 pgsql 数据库进行集成测试
|
||||||
同上,首先在 docker 容器里部署一个 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)
|
||||||
```
|
```
|
||||||
之后便可以基于这个数据库进行集成测试
|
之后便可以基于这个数据库进行集成测试
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue