Skip to content

A7: setup.php: install fails under strict sql_mode; upgrade uses removed db_* helpers #8

Open

Description

@caseysoftware
  • holiday_start_date / holiday_end_date are datetime NOT NULL DEFAULT '0000-00-00 00:00:00'. That fails where NO_ZERO_DATE is set (MySQL 8's strict default). Use NULL or no default.
  • ENGINE=MyISAM, utf8: use InnoDB / utf8mb4 like core.
  • upgrade() from 0.1 calls db_exec() and db_error(), which were removed. The holiday_start_end_date index is also added twice.
  • No requirements (web2project ≥ 5, PHP ≥ 8.3); CSetupHoliday doesn't extend w2p_System_Setup.
  • Check remove() against the current module-removal flow (it deletes its own modules row).

Files: setup.php L38–61, L117–150

Evidence: found by reading the code against master; not reproduced on a running install.
Effort: S

Part of #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions