0

I’m building a site in ExpressionEngine where the client wants every image and text built into EE’s content management system as an editable field. Ok… Almost done. Currently have 1030 Channel Fields, across 20 Channel Field Groups, with in 20 Channels.

In trying to add Channel Field # 1031 and continue adding Channel Fields I get the following error:

A Database Error Occurred Error Number: 1117

Too many columns

ALTER TABLE `exp_channel_data` ADD `field_id_1036` text NULL

Filename: libraries/api/Api_channel_fields.php

Line Number: 675

I have spent the last 2 weeks creating these Channel Fields and I really don’t want to go back and restructure everything. So I’m wondering….

Is there a way to increase the number of columns to allow for the rest of the Channel Fields needed to complete this site? Or what ever needs to be done to allow me to add more channel fields?

Any suggestions would be greatly appreciated. Thank You

4

1 回答 1

1

你达到了 MySQL 的限制。您可以更改列类型以更准确地反映它们包含的数据类型,例如,存储日期或布尔值的列不需要是 atextvarchar占用表中不必要的空间。每行可以有多少数据也是有限制的。

  • 每个表(无论存储引擎如何)的最大行大小为 65,535 字节。存储引擎可能会对此限制施加额外的限制,从而减少有效的最大行大小。

可能是时候更好地规范化数据了。

于 2013-10-31T17:10:18.033 回答