HowTo: Define the maximum size of content fields

Edit on GitHub

By default, CMS module doesn’t specify the content field size. For MySQL and MariaDB, it is transferred to TEXT (65535 bytes), and, for PostgreSQL, it is transferred to TEXT (unlimited length).

In case your project requires more, you can redefine field size in spy_cms_version table.

For example, place the following into src/Pyz/Zed/Cms/Persistence/Propel/Schema/spy_cms.schema.xml:

<div code="xml">
	<?xml version="1.0"?>
	<database xmlns:xsi="" name="zed" xsi:noNamespaceSchemaLocation="" namespace="OrmZedCmsPersistence" package="src.Orm.Zed.Cms.Persistence">
		<table name="spy_cms_version">
			<column name="data" type="LONGVARCHAR" size="4294967295" />