Node.js 初始化期间自动删除的TypeForm多个可连接数据

Node.js 初始化期间自动删除的TypeForm多个可连接数据,node.js,sqlite,typeorm,Node.js,Sqlite,Typeorm,我使用的是打字机0.2.24。我在(1)PopTaggerProfile(所有者端)和(2)标记之间有一个连接表 问题是: 我可以添加和保存新的数据,这两个数据之间的新关系存储在pop\u tagger\u profile\u selected\u tags\u tag表中,正如我所看到的,它在日志中提交,并使用数据库工具浏览 但是,当我下次启动该应用程序时,由于某种原因,该联接表上的所有数据都会被删除,并且在创建到sqlite数据库的新连接时,该表会保留为空。但是PopTaggerProfil

我使用的是打字机0.2.24。我在(1)PopTaggerProfile(所有者端)和(2)标记之间有一个连接表

问题是:

我可以添加和保存新的数据,这两个数据之间的新关系存储在
pop\u tagger\u profile\u selected\u tags\u tag
表中,正如我所看到的,它在日志中提交,并使用数据库工具浏览

但是,当我下次启动该应用程序时,由于某种原因,该联接表上的所有数据都会被删除,并且在创建到sqlite数据库的新连接时,该表会保留为空。但是PopTaggerProfile和标记表上的数据不受影响,它们被正确地保存

我做错了什么?我的连接设置:

 type: "sqlite",
 database: "database.sqlite",
 synchronize: true, 
 logging: true,
 entities: [Tag, TagRelation, PopTaggerProfile, ProjectProfile],
 subscribers: [TagRelationSubscriber]
class Tag:
 @manytomany((type) => PopTaggerProfile, (popTaggerProfile) => popTaggerProfile.id, { onDelete: "CASCADE", })
popTaggerProfiles: PopTaggerProfile[]; 
 type: "sqlite",
 database: "database.sqlite",
 synchronize: true, 
 logging: true,
 entities: [Tag, TagRelation, PopTaggerProfile, ProjectProfile],
 subscribers: [TagRelationSubscriber]