Problem/Motivation

After using composer to upgrade to 10.2, I found that my database updates wouldn't work. THey were blocked by path_alias:

>  [notice] Update started: path_alias_post_update_drop_path_alias_status_index
>  [error]  Unable to parse the column type TINYINT 
>  [error]  Update failed: path_alias_post_update_drop_path_alias_status_index 
 [error]  Update aborted by: path_alias_post_update_drop_path_alias_status_index 
 [error]  Finished performing updates. 

I'm using SQLite which doesn't support a "TINYINT". All of the integers have the same type.

Any suggestions for the best way to unstick this?

Comments

bogdog400 created an issue. See original summary.

larowlan’s picture

Status: Active » Postponed (maintainer needs more info)

What version of sqlite are you using?

bogdog400’s picture

3.37.2 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5dalt1

larowlan’s picture

Status: Postponed (maintainer needs more info) » Active

Thanks

catch’s picture

Priority: Normal » Critical
Related issues: +#3370560: Update failed: dblog_update_10101 (TINYINT)

This is very similar to #3370560: Update failed: dblog_update_10101 (TINYINT) and as in that issue I think we can just skip the update if the driver is sqlite.

catch’s picture

catch’s picture

Component: path.module » sqlite db driver

Actually we can't skip the update here because it's trying to drop an index and that also needs to happen on sqlite, maybe this is something to do with the translation from schema definitions for sqlite itself? Moving this to the sqlite driver.

bogdog400’s picture

Thanks. Can the index be dropped by command line?

Version: 10.2.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.