Calling Developers!
We are reenergizing our code contribution process! Learn More

I have a missing column exception when trying to add a product to the basket

Options
emiltotsev
emiltotsev Developer Posts: 6 🧑🏻‍🚀 - Cadet

In b2b and in b2c as well when I try to add a product to the basket I have exception Column not found: 1054 Unknown column 'spy_product_abstract.pyz_color_code' in 'field list'","code".

It seems that column is in file: spy_product.schema

<?xml version="1.0"?><database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="zed" xsi:noNamespaceSchemaLocation="http://xsd.propelorm.org/1.6/database.xsd" namespace="Orm\Zed\Product\Persistence" package="src.Orm.Zed.Product.Persistence">
    <table name="spy_product_abstract" idMethod="native" allowPkInsert="true" phpName="SpyProductAbstract">        <column name="pyz_color_code" required="false" type="VARCHAR" default="NULL" size="8"/>    </table>
</database>

How I could fix this exception?

Answers