Skip to content

Commit ed6f8e1

Browse files
committed
Added docs
1 parent fc54a5a commit ed6f8e1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. This projec
44

55
## [unreleased] Unreleased
66

7+
## [1.1.8] 2025-01-10
8+
9+
* 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.
10+
* Tweak - Decide if we can create/update during this requests based on blog's status, preventing multiple "check" queries.
711

812
## [1.1.7] 2024-06-05
913

src/Schema/Builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ public function register_custom_tables_names() {
250250
* Creates or updates the custom tables the plugin will use.
251251
*
252252
* @since 1.0.0
253+
* @since 1.1.8 Decided if we can perform the queries based on blog's status.
253254
*
254255
* @param bool $force Whether to force the creation or update of the tables or not.
255256
*

src/Schema/Tables/Contracts/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public function empty_table() {
230230
/**
231231
* Truncates the custom table.
232232
*
233-
* @since TBD
233+
* @since 1.1.8
234234
*
235235
* @return int|false The number of removed rows, or `false` to indicate a failure.
236236
*/
@@ -557,7 +557,7 @@ public function update() {
557557
/**
558558
* Checks if a foreign key exists on a table.
559559
*
560-
* @since TBD
560+
* @since 1.1.3
561561
*
562562
* @param string $foreign_key The foreign key to check for.
563563
* @param string|null $table_name The table name to check. Defaults to the current table.

0 commit comments

Comments
 (0)