Support sqlite schema (again)

Created on 8 January 2025, about 1 month ago

Problem/Motivation

When testing using sqlite, all functional tests fail with:

Undefined array key "type"

A website being run on an sqlite database would also fail.

This was originally fixed in https://git.drupalcode.org/project/cas_server/-/commit/703fbe083dbf41af7... and then broken again in 🐛 Support PostgreSQL install schema (timestamp) Fixed .

Steps to reproduce

  1. Set variable in phpunit.xml:
    <env name="SIMPLETEST_DB" value="sqlite://localhost//tmp/testdb.sqlite"/>
  2. Run tests with the simpletest database set to sqlite.

Proposed resolution

Add the default type of 'int' to the expiration field in hook_schema.

Documentation states that this shouldn't be necessary, but the fallback isn't working for sqlite.

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ➖ Port to other branches
  • ❌ Release

User interface changes

  • N/A

API changes

  • Type changed for expiration field.

Data model changes

  • N/A

Release notes snippet

  • @todo
🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇦🇺Australia elc

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024