When triying to upgrade DB or cleaning caché I obtain this error

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.enabled' in 'field list': SELECT base.discount_id AS discount_id, base.name AS name, base.label AS label, base.type AS type, base.enabled AS enabled, base.status AS status, base.module AS module, base.component_title AS component_title FROM {commerce_discount} base WHERE (base.status IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2)) ; Array ( [:db_condition_placeholder_0] => 3 [:db_condition_placeholder_1] => 2 [:db_condition_placeholder_2] => 6 ) en EntityAPIController->query() (línea 187 de /public_html/profiles/commerce_kickstart/modules/contrib/entity/includes/entity.controller.inc).

any idea?
I found a lot and differents "PDOException: SQLSTATE[42S22]:" in drupal forum but not same as me

see screenshot

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

makokis’s picture

Issue summary: View changes
makokis’s picture

misteriously it's solved, works fine again.

makokis’s picture

this issue comes again to me, when triying to clean the caches.

Before I've used a previous backup to restore my site and works fine. Than, when update to the new updates the problem reproduce.

Any idea to solve this?
Using Commerce Kickstart 2.13

bojanz’s picture

Status: Active » Closed (duplicate)

This is a commerce_discount bug, tracked in #1854108: Refactor discount view filters and alter schema. Please comment there.

makokis’s picture

I only solved this issue when install the l10n update 7.x-2.x-dev. version.

hairidine’s picture

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm.celivery_callback' in 'field list&#039