I just installed the latest dev and when I was checking the uninstall tab, I have a database error. See screenshots.

Comments

zenimagine created an issue. See original summary.

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

The uninstall page loads fine for me.

Did you run all entity updates?

zenimagine’s picture

Yes i did the update

zenimagine’s picture

StatusFileSize
new42.38 KB

I also tried to uninstalled it by the console but it does not work.

zenimagine’s picture

drupal module:uninstall commerce_license

 [ERROR] SQLSTATE[42S02]: Base table or view not found: 1146 Table                                                      
         'www.domaine.com.g688hda8_commerce_license__license_role' doesn't exist: UPDATE                                
         {commerce_license__license_role} SET deleted=:db_update_placeholder_0                                          
         WHERE bundle = :db_condition_placeholder_0; Array                                                              
         (                                                                                                              
             [:db_update_placeholder_0] => 1                                                                            
             [:db_condition_placeholder_0] => role                                                                      
         )
joachim’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Fixed

It's probably that you updated the code and that added the role field to the schema, but didn't create it.

You can either add the table manually so uninstall deletes it, hack out the exception in the code temporarily, or reinstall your whole site.

zenimagine’s picture

Can you explain how to do this with "Console" ? thank you

joachim’s picture

It's best if you ask for support for Console on IRC or at the Console project. I don't use it that much.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jpoesen’s picture

For what it's worth, I was running into the same issues and was able to uninstall commerce_license after running the following database queries manually:

CREATE TABLE commerce_license__license_role (bundle varchar(255), role varchar(255), deleted varchar(255), license_role_target_id int);
CREATE TABLE commerce_subscription__license (deleted varchar(255), bundle varchar(255), license_target_id int);
DELETE FROM cache_config;
DELETE FROM config WHERE name = 'field.storage.commerce_product_variation.license_type' OR data LIKE '%field.storage.commerce_product_variation.license_type%';