I have a page in production mode with caching enabled.
When I create a new record I get an error page and in the logs I see
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘nest_depth’ in ‘field list’ in /…/web/vendor/laravel/framework/src/Illuminate/Database/Connection.php:414
I also gave the tailor a remigrate but it didn’t help, as well as cleared the cachce.
Thanks. If you convert this to a structure, migrate it, and then back to an entry again: It will be a workaround. For now, we will change this to a Known Issue.
Just wanted to report I also had the same problem.
The entry that was failing:
uuid: 736778cb-6d9d-474d-a52d-d264714b227c
handle: Andysh\Website\TechStackItem
type: entry
name: Tech Stack Item
drafts: false
navigation:
label: Apps/Services
icon: icon-cube
parent: Andysh\Website\TechStack
order: 10
fields:
body:
label: Body
type: richeditor
tab: Content
comment: Use this field to describe what this app/service is and what it is used for.
excerpt:
label: Excerpt
type: richeditor
tab: Content
comment: A shortened version of the Body that appears on listing pages.
is_favourite:
label: Favourite?
type: checkbox
tab: Content
comment: Highlight this as a favourite item (will be displayed first.)
referral_url:
label: Referral URL
type: text
tab: Referral
comment: URL to allow users to sign up or purchase.
referral_button_text:
label: Referral Button Text
type: dropdown
tab: Referral
comment: Text to display to users.
options:
buy: Buy
purchase: Purchase
register: Register
signup: Sign-up
logo_info:
label: Logo
type: mixin
source: Andysh\Website\ImageInfo
tab: Media
supplier:
label: Supplier/Provider
type: entries
source: Andysh\Website\TechStackSupplier
displayMode: recordfinder
maxItems: 1
tab: Relations
categories:
label: Categories
type: entries
source: Andysh\Website\TechStackCategory
tab: Relations
I used a process of elimination to determine it was the “categories” field causing the problem. After a Google of the error brought me to this thread, I changed the “Andysh\Website\TechStackCategory” blueprint to a structure, migrated, then back to an entry, and this worked.
Before I did this, it also fixed the problem if I added:
displayMode: recordfinder
maxItems: 1
to the “categories” field - but obviously the recordfinder only allows 1 relation to be linked, so wasn’t a solution for me.