From bde8fa735976e8db93dfb7668a50f935bb1941e2 Mon Sep 17 00:00:00 2001 From: wenlele Date: Thu, 19 Jan 2023 11:32:36 +0800 Subject: [PATCH] =?UTF-8?q?model=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/models/point.js | 4 ++-- api/app/lib/models/project.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/app/lib/models/point.js b/api/app/lib/models/point.js index 40c6f9f..978fc7c 100644 --- a/api/app/lib/models/point.js +++ b/api/app/lib/models/point.js @@ -34,7 +34,7 @@ module.exports = dc => { autoIncrement: false }, longitude: { - type: DataTypes.INTEGER, + type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, @@ -43,7 +43,7 @@ module.exports = dc => { autoIncrement: false }, latitude: { - type: DataTypes.INTEGER, + type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, diff --git a/api/app/lib/models/project.js b/api/app/lib/models/project.js index 347f817..8543137 100644 --- a/api/app/lib/models/project.js +++ b/api/app/lib/models/project.js @@ -52,7 +52,7 @@ module.exports = dc => { autoIncrement: false }, longitude: { - type: DataTypes.DOUBLE, + type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, @@ -61,7 +61,7 @@ module.exports = dc => { autoIncrement: false }, latitude: { - type: DataTypes.DOUBLE, + type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null,