Problem/Motivation

In the current version of Acquia DAM, the acquia_dam_expiry_date_value field in the media__acquia_dam_expiry_date table (and its revision tables) is defined as INT (32-bit).

This causes numeric overflow errors when storing expiry dates beyond 2038 (Unix timestamp > 2,147,483,647), resulting in:

Queue processing failures

Media save errors

SQLSTATE[22003]: Numeric value out of range

The goal is to make the expiry date column Y2038-compatible and safe for high timestamps.

Steps to reproduce

Install Acquia DAM on Drupal 10.

Create or import a media item with an expiry date beyond 2038 (e.g., timestamp 2376104400).

Process the DAM sync queue or save the media item.

Observe the SQL overflow error:

SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'acquia_dam_expiry_date_value'

Proposed resolution

Convert all relevant expiry date columns from INT → BIGINT (64-bit) in:

media__acquia_dam_expiry_date

media_revision__acquia_dam_expiry_date

media_field_revision__acquia_dam_expiry_date

Add a helper function to perform the alteration.

Apply the fix in both:

hook_install() → fresh installs

hook_update_N() → existing sites

Ensure compatibility with Drupal 10 and Acquia DAM latest version.

Remaining tasks

Review and test patch on local, staging, and production environments.

Confirm queue items with future expiry dates work correctly.

Verify no data loss occurs during the column type conversion.

User interface changes

None. This is a database-level fix only.

API changes

None. Existing APIs for media entities remain compatible.

Only internal storage column type changes.

Data model changes

acquia_dam_expiry_date_value column in all DAM-related tables is changed from INT → BIGINT.

Affects:

media__acquia_dam_expiry_date

media_revision__acquia_dam_expiry_date

media_field_revision__acquia_dam_expiry_da

Issue fork acquia_dam-3572442

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

amal_tf created an issue. See original summary.

amal_tf’s picture

Issue tags: +expiration date
StatusFileSize
new1.59 KB
amal_tf’s picture

StatusFileSize
new1.77 KB
amal_tf’s picture

StatusFileSize
new1.77 KB
new1.77 KB
amal_tf’s picture

rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

Status: Active » Needs work
rajeshreeputra’s picture

Version: 1.1.11 » 1.1.x-dev
rajeshreeputra’s picture

Status: Needs work » Needs review

rajeshreeputra’s picture

Status: Needs review » Fixed

Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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