Skip to content

Conversation

@partydragen
Copy link
Member

Make increment and decrement support several columns and custom number

* @return bool Whether an error occurred or not.
* @param string $table The table to use.
* @param int $id The id of the row to increment a column in.
* @param string|array $fields Array of data to in "column => value" format to increment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, if $fields is in the format ['column_one', 'column_two'], then we could default the value to 1?

@samerton samerton added this to the 2.2.0 milestone Feb 24, 2025
@samerton samerton modified the milestones: 2.2.0, 2.3.0 Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants