Postgresql 在strapi中设置必填字段时出现问题

Postgresql 在strapi中设置必填字段时出现问题,postgresql,strapi,Postgresql,Strapi,在我根据需要标记了几个字段之后,我就不能再启动服务器了。在postgres日志中,我可以看到它试图删除从未存在过的约束。错误是关于我试图按要求标记的字段 2020-01-31 12:59:06.753 UTC [372] ERROR: constraint "awardscompetitions_place_unique" of relation "awardscompetitions" does not exist 2020-01-31 12:59:06.753 UTC [372] STAT

在我根据需要标记了几个字段之后,我就不能再启动服务器了。在postgres日志中,我可以看到它试图删除从未存在过的约束。错误是关于我试图按要求标记的字段

2020-01-31 12:59:06.753 UTC [372] ERROR:  constraint "awardscompetitions_place_unique" of relation "awardscompetitions" does not exist
2020-01-31 12:59:06.753 UTC [372] STATEMENT:  alter table "awardscompetitions" drop constraint "awardscompetitions_place_unique"
2020-01-31 12:59:06.754 UTC [369] ERROR:  constraint "awardscompetitions_price_unique" of relation "awardscompetitions" does not exist
2020-01-31 12:59:06.754 UTC [369] STATEMENT:  alter table "awardscompetitions" drop constraint "awardscompetitions_price_unique"

有人知道如何防止删除这些不存在的约束吗?

您好!请提供复制您的问题的确切步骤。这将有助于我帮助您。原因可能是您创建了一些不符合所需验证的文档。是否可以尝试通过编辑文件手动重新启动服务器并删除相应的文档来删除所需的验证。添加所需的验证之后应该可以正常工作。