Drush update fails

Created on 2 January 2025, 4 months ago

Problem/Motivation

Drush update throws error after instelling newest dev version 30/12/2024

Steps to reproduce

perform composer update and then drush update

drush updb
-------- ----------- --------------- -----------------------------------
Module Update ID Type Description
-------- ----------- --------------- -----------------------------------
advban 8101 hook_update_n 8101 - Adding reason field to the
advban_ip table.
-------- ----------- --------------- -----------------------------------

┌ Do you wish to run the specified pending updates? ───────────┐
│ Yes │
└──────────────────────────────────────────────────────────────┘

> [notice] Update started: advban_update_8101
> [error] SQLSTATE[42000]: Syntax error or access violation: 1101 BLOB, TEXT, GEOMETRY or JSON column 'reason' can't have a default value: ALTER TABLE "advban_ip" ADD "reason" TEXT NOT NULL DEFAULT '' COMMENT 'Ban reason'; Array
> (
> )
>
> [error] Update failed: advban_update_8101
[error] Update aborted by: advban_update_8101
[error] Finished performing updates.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium bart lambert

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

Comments & Activities

Production build 0.71.5 2024