Skip to content

Commit

Permalink
Added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanta94 committed Jan 10, 2025
1 parent fc54a5a commit ed6f8e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. This projec

## [unreleased] Unreleased

## [1.1.8] 2025-01-10

* Feature - Introduce truncate method which does what the empty_table method was doing. Update empty_table to actually empty the table instead of truncating it.
* Tweak - Decide if we can create/update during this requests based on blog's status, preventing multiple "check" queries.

## [1.1.7] 2024-06-05

Expand Down
1 change: 1 addition & 0 deletions src/Schema/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public function register_custom_tables_names() {
* Creates or updates the custom tables the plugin will use.
*
* @since 1.0.0
* @since 1.1.8 Decided if we can perform the queries based on blog's status.
*
* @param bool $force Whether to force the creation or update of the tables or not.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Schema/Tables/Contracts/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function empty_table() {
/**
* Truncates the custom table.
*
* @since TBD
* @since 1.1.8
*
* @return int|false The number of removed rows, or `false` to indicate a failure.
*/
Expand Down Expand Up @@ -557,7 +557,7 @@ public function update() {
/**
* Checks if a foreign key exists on a table.
*
* @since TBD
* @since 1.1.3
*
* @param string $foreign_key The foreign key to check for.
* @param string|null $table_name The table name to check. Defaults to the current table.
Expand Down

0 comments on commit ed6f8e1

Please sign in to comment.