Skip to content

Bug: $forge->dropColumn not allowing arrays #2576

Description

@MohKari

Describe the bug
According to the documentation here, the dropColumn method should allow for an array of columns to be dropped. However the method only allows for a string, and the logic doesn't handle the possibility of an array been supplied.

CodeIgniter 4 version
4.0.0:master

Affected module(s)
CodeIgniter\Database\Forge

Expected behavior, and steps to reproduce if appropriate
Be allowed to supply either a string or an array, and either a single or multiple columns are dropped.

Context

  • OS: 4.9.184-linuxkit
  • Web server Apache/2.4.38 (Debian)
  • PHP version 7.2.22

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

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions