gpt4 book ai didi

node.js - StrongLoop ACL 表不存在

转载 作者:搜寻专家 更新时间:2023-10-31 23:00:36 24 4
gpt4 key购买 nike

我成功地从我的数据库生成了我所有的模型。然后,我通过执行“node”来运行 api。我能够看到我所有的 Web 服务,但是当我尝试尝试服务时,出现 500 错误,告诉我没有 ACL 表。所以,我打开 model-config.json,我看到有 4 个我之前没有创建的模型(User、AccessToken、ACL、RoleMapping 和 Role)。我想知道我的数据库中是否必须存在所有这些模型。你知道我必须在每个表中放入哪些属性吗?提前谢谢你。

Error:
{
"error": {
"name": "Error",
"status": 500,
"message": "ER_NO_SUCH_TABLE: Table 'sed.ACL' doesn't exist",
"code": "ER_NO_SUCH_TABLE",
"errno": 1146,
"sqlState": "42S02",
"index": 0,
"stack": "Error: ER_NO_SUCH_TABLE: Table 'sed.ACL' doesn't exist\n [...]"
}
}

最佳答案

您需要自己自动迁移这些表。见:

关于node.js - StrongLoop ACL 表不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32487063/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com