This patch updates the schema definition for the admin_message and admin_message_close tables so that the nid and uid columns match the definitions in the node and user tables. Specifically, this changes the nid and uid columns to be INT(10) instead of SMALLINT which allows creation and usage of admin_messages on drupal sites with nids/uids greater than the size of smallint.

Included is an update function admin_message_update_6001() to make the schema change for previously installed versions.

This has been tested locally and works when using a fresh install of the schema and when updating the schema.

CommentFileSizeAuthor
nid_uid.patch1.59 KBbenroot

Comments

dsnopek’s picture

Status: Needs review » Reviewed & tested by the community

This patch worked great for me, including the upgrade!

dsnopek’s picture

Status: Reviewed & tested by the community » Fixed

Committed to git! Thanks!

Status: Fixed » Closed (fixed)

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