added mysql v8 to docker-compose;

This commit is contained in:
Dmitry Zotov 2022-08-24 18:29:01 +05:00
parent 5ebc626d29
commit fd7ae9741e
3 changed files with 20 additions and 3 deletions

View File

@ -13,6 +13,20 @@ services:
MYSQL_PASSWORD: "test"
MYSQL_DATABASE: "test"
# mysql v8
# mysql8:
# image: "mysql:8"
# container_name: "typeorm-mysql8"
# ports:
# - "3308:3306"
# environment:
# MYSQL_ROOT_PASSWORD: "admin"
# MYSQL_USER: "test"
# MYSQL_PASSWORD: "test"
# MYSQL_DATABASE: "test"
# volumes:
# - mysql8_volume:/var/lib/mysql
# mariadb
mariadb:
image: "mariadb:10.5.13"
@ -127,8 +141,10 @@ services:
# container_name: "typeorm-redis"
# ports:
# - "6379:6379"
#volumes:
# volume-hana-xe:
# mysql8_volume:
networks:
typeorm:

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "typeorm",
"version": "0.3.6",
"version": "0.3.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "typeorm",
"version": "0.3.6",
"version": "0.3.7",
"license": "MIT",
"dependencies": {
"@sqltools/formatter": "^1.2.2",

View File

@ -2559,7 +2559,8 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
tableColumn.name = dbColumn["COLUMN_NAME"]
tableColumn.type =
dbColumn["DATA_TYPE"].toLowerCase()
// sicne mysql 8.0, "geometrycollection" returned as "geomcollection"
// since mysql 8.0, "geometrycollection" returned as "geomcollection"
// typeorm still use "geometrycollection"
if (tableColumn.type === "geomcollection") {
tableColumn.type = "geometrycollection"