明树Git Lab

Commit d59dec69 authored by zfp1's avatar zfp1

update

parent 04ebfca6
Pipeline #104457 passed with stage
in 3 seconds
...@@ -1869,9 +1869,9 @@ const Project = sequelize.define('Project', { ...@@ -1869,9 +1869,9 @@ const Project = sequelize.define('Project', {
// 同步模型到数据库(创建表) // 同步模型到数据库(创建表)
Project.sync({ Project.sync({
// force: false, force: false,
// force: true ,//会删除已存在表并重新创建 // force: true ,//会删除已存在表并重新创建
alter: true // alter: true
}) })
.then(() => { .then(() => {
console.log('Project 表同步成功'); console.log('Project 表同步成功');
......
...@@ -90,9 +90,9 @@ const ProjectGdxx = sequelize.define('ProjectGdxx', { ...@@ -90,9 +90,9 @@ const ProjectGdxx = sequelize.define('ProjectGdxx', {
// 同步模型到数据库(创建表) // 同步模型到数据库(创建表)
ProjectGdxx.sync({ ProjectGdxx.sync({
force: false, // force: false,
// force: true ,//会删除已存在表并重新创建 // force: true ,//会删除已存在表并重新创建
// alter: true alter: true
}) })
.then(() => { .then(() => {
console.log('ProjectGdxx 表同步成功'); console.log('ProjectGdxx 表同步成功');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment