Skip to content

w2p_Database_Query::addField()/alterField() deprecated since v3.0 with no replacement, and still used by core #549

Open

Description

@caseysoftware

w2p_Database_Query::addField() and alterField() raise E_USER_NOTICE "has been deprecated in v3.0 and will be removed by v4.0". We're at 5.0, there's no documented replacement, and core still uses them: modules/resources/setup.php upgrade() calls both.

Add-on modules adding a column in upgrade() have no clean option, so every install and upgrade logs the notice (seen with Notebook).

Either un-deprecate them (they are the natural pair to alterTable()), or add a replacement such as addColumn($name, $definition) / changeColumn(), switch Resources to it, and mention it in the manual's "Updating Add On Modules for v5.0" section.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions