Description
After upgrading from Craft CMS 4 / Commerce 4 to Craft CMS 5 / Commerce 5, saving a new Digital Product throws a PDOException because the price field is missing from the INSERT query into commerce_purchasables.
Steps to reproduce
- Upgrade Craft CMS from v4 to v5 (The upgrade and migration completed successfully without any errors.)
- Upgrade Craft Commerce from v4 to v5 (The upgrade and migration completed successfully without any errors.)
- Install or keep craftcms/digital-products v4.0.3
- Go to Commerce → Products → Digital Products
- Create a new digital product and save it
Additional info
-
Craft version: Craft Pro 5.10.1
-
PHP version: 8.4.20
-
Database driver & version: MySQL 8.0.40
-
Plugins & versions:
-
Craft Commerce: 5.6.5
-
Digital Products: 4.0.3
-
Freeform: 5.15.13
-
Link Vault: 5.0.3
-
Mollie for Craft Commerce: 4.4.1
-
Redactor: 4.2.0
-
Redactor Anchors: 1.5.0
Description
After upgrading from Craft CMS 4 / Commerce 4 to Craft CMS 5 / Commerce 5, saving a new Digital Product throws a PDOException because the
pricefield is missing from the INSERT query intocommerce_purchasables.Steps to reproduce
Additional info
Craft version: Craft Pro 5.10.1
PHP version: 8.4.20
Database driver & version: MySQL 8.0.40
Plugins & versions:
Craft Commerce: 5.6.5
Digital Products: 4.0.3
Freeform: 5.15.13
Link Vault: 5.0.3
Mollie for Craft Commerce: 4.4.1
Redactor: 4.2.0
Redactor Anchors: 1.5.0