本文介绍了为什么Silverstripe会将我的页面表设置为过时的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我对silverstripe有很大的疑问.一切正常,直到我刷新了站点,然后突然在dev/build上出现了一些错误:

I have a big problem with silverstripe. Everything was okay until i flushed my site and suddenly i got some errors with this on the dev/build :

Table Page: renamed to _obsolete_Page
Table Page_versions: renamed to _obsolete_Page_versions
Table Page_Live: renamed to _obsolete_Page_Live

所以silverstripe将我的所有页表都设置为过时的表,并且我的网站不再可用!有人有这个问题吗?我试图在代码中找到一些解释,但没有找到任何东西.请帮助我:(

So silverstripe set all my page tables as obsolete ones and my site does not work anymore!Does anybody already had this issue?I tried to find some explanations in the code but did not find anything...Please help me :(

推荐答案

如果未检测到对表的任何需求(对象上没有$ db或$ has_one数组),它将标记为过时的表.哪些字段应存储在您的Page数据库中?

It'll mark your tables as obsolete if it doesn't detect any need for them (no $db or $has_one arrays on the object). What fields should be stored on your Page database?

这篇关于为什么Silverstripe会将我的页面表设置为过时的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-20 12:43