Error when uninstalling Workspaces after making content changes that were published

Created on 7 May 2021, over 3 years ago
Updated 8 March 2024, 11 months ago

Problem/Motivation

I was trying out Workspaces. Made a custom workspace and several content changes that were published. Deleted workspaces. Uninstalled the module. Got a WSOD on uninstall

[Fri May  7 16:03:20 2021] Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "Exception thrown while performing a schema update. SQLSTATE[HY000]: General error: 1 no such column: entity_table.type: INSERT INTO "field_deleted_data_54a97764b3" ("bundle", "entity_id", "revision_id", "langcode", "workspace_target_id", "deleted", "delta") SELECT "entity_table"."type" AS "bundle", "entity_table"."nid" AS "entity_id", "entity_table"."vid" AS "revision_id", "entity_table"."langcode" AS "langcode", "entity_table"."workspace" AS "workspace_target_id", :deleted AS "deleted", :delta AS "delta"
FROM
"node_revision" "entity_table"
WHERE "entity_table"."workspace" IS NOT NULL; Array
(
    [:deleted] => 1
    [:delta] => 0
)
" at /Users/mglaman/Drupal/sites/workspaces-dev/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php line 1580

Something tried to handle a deleted field and set type (bundle) column on node_revision

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
WorkspacesΒ  β†’

Last updated about 18 hours ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024