NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3584 most downloaded on Packagist
A library for simplifying the creation and updates of custom tables within WordPress.
Latest stable
3.2.0
Last release 10 months ago
05 Jan 2026
Release timing varies
gaps range from 8 days to 7 months
Nearly every release is documented
notes for 20 of 20 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
20 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Add support for nested sub-WHERE clauses and update hook naming by @dpanta94 in https://github.com/stellarwp/schema/pull/49
Full Changelog: https://github.com/stellarwp/schema/compare/3.1.4...3.2.0
paginate() and get_total_items() methods. This allows building complex queries like WHERE (col1 = 'a' OR col2 = 'b') AND col3 = 'c'.stellarwp_schema_custom_table_paginate_query filter to allow modification of the paginate query before execution.stellarwp_schema_custom_table_total_items_query filter to allow modification of the total items count query before execution.tec_common_* prefix to stellarwp_schema_* prefix for consistency with the StellarWP namespace.The following hooks have been renamed:
tec_common_custom_table_query_pre_results → stellarwp_schema_custom_table_query_pre_resultstec_common_custom_table_query_post_results → stellarwp_schema_custom_table_query_post_resultstec_common_custom_table_query_results → stellarwp_schema_custom_table_query_resultstec_common_custom_table_query_where → stellarwp_schema_custom_table_query_whereYour coding agent can read these notes before it upgrades. Set up the MCP server →
Fix/ensuring array values can be used by @dpanta94 in https://github.com/stellarwp/schema/pull/48
Full Changelog: https://github.com/stellarwp/schema/compare/3.1.3...3.1.4
Properly cache each implementation's schema by @dpanta94 in https://github.com/stellarwp/schema/pull/47
Full Changelog: https://github.com/stellarwp/schema/compare/3.1.2...3.1.3
get_current_schema method will npw cache the schema of each implementation correctly.Fixing error during update evaluation by @dpanta94 in https://github.com/stellarwp/schema/pull/46
Full Changelog: https://github.com/stellarwp/schema/compare/3.1.1...3.1.2
update_many method will now properly check if the transaction was successful.Adding the order by param in the get_all_by method by @dpanta94 in https://github.com/stellarwp/schema/pull/45
Full Changelog: https://github.com/stellarwp/schema/compare/3.1.0...3.1.1
Feat/adding more column types by @dpanta94 in https://github.com/stellarwp/schema/pull/44
Full Changelog: https://github.com/stellarwp/schema/compare/3.0.0...3.1.0
Blob_Column, Binary_Column, and Boolean_Column.feat: Introduce v3 strict column definitions and enhanced type safety by @dpanta94 in https://github.com/stellarwp/schema/pull/43
https://github.com/stellarwp/schema/blob/main/docs/migrating-from-v2-to-v3.md
Full Changelog: https://github.com/stellarwp/schema/compare/2.0.1...3.0.0
Fix - multsite table up by @lucatume in https://github.com/stellarwp/schema/pull/40
Full Changelog: https://github.com/stellarwp/schema/compare/2.0.0...2.0.1
Bump di52 to 4.0.1 and all other deps by @defunctl in https://github.com/stellarwp/schema/pull/38. This fixes PHP 8.4 deprecation notices.
^4.0.Full Changelog: https://github.com/stellarwp/schema/compare/1.1.9...2.0.0
Add throws tags and better generics by @defunctl in https://github.com/stellarwp/schema/pull/36
Full Changelog: https://github.com/stellarwp/schema/compare/1.1.8...1.1.9
Feature - Introduce truncate method which does what the empty_table method was doing. Update empty_table to actually empty the table instead of trunca
Full Changelog: https://github.com/stellarwp/schema/compare/1.1.7...1.1.8
BUGFIX: Collection Filter Iterators by @defunctl in https://github.com/stellarwp/schema/pull/34
Full Changelog: https://github.com/stellarwp/schema/compare/1.1.6...1.1.7
Collection::get_by_group() now properly works with a single string group name.Group_FilterIterator::count() now properly returns the filtered count and not the base iterator count.Needs_Update_FilterIterator::count() now properly returns the filtered count and not the base iterator count.Fix - Resolve PHP notice caused by passing a null to version_compare().
null to version_compare().Fix - PHP < 7.4 compatibility change to avoid arrow functions in favor of explicit function closures.
Fix - Added #[\ReturnTypeWillChange] to a number of methods for PHP 8.2 compatibility.
#[\ReturnTypeWillChange] to a number of methods for PHP 8.2 compatibility.Add Table::has_foreign_key method by @lucatume in https://github.com/stellarwp/schema/pull/15
Full Changelog: https://github.com/stellarwp/schema/compare/1.1.2...1.1.3
Tweak - Set the composer's config.platform.php to 7.0.
config.platform.php to 7.0.Fix - Resolves some issues with docblocks that didn't pass PHPStan during actual usage of this library elsewhere.
Added stellarwp/db as a dependency.
$wpdb calls with the DB class.Contracts/ directories.Config class.$wpdb calls with the DB class.Contracts/ directories.Config class.### Added - Initial version - Documentation - Automated tests
One column per quarter.