Skip to content

Commit 6546e45

Browse files
authored
Release 3.1.0 (#521)
## Release `3.1.0` Prepares the version numbers and release notes for `3.1.0`. **Changelog draft:** --- **SQLite Database Integration 3.1 is here! 🎉** This release improves **database storage and configuration** and fixes several MySQL compatibility issues. ## What's new Version 3.1 improves how WordPress sites store, locate, and protect their SQLite databases. It also fixes SQL behavior and export compatibility: - **Randomized database paths:** The default database location is now a randomized directory under `wp-content/database/`, recorded in `wp-content/database/db-path.php`. ([#502](#502)) - **`DB_PATH`:** Configure the database with one full-path constant, also available at runtime for integrations. ([#512](#512)) - **SQL compatibility:** Fix `IF()` condition evaluation and make `TRADITIONAL` enable its component SQL modes. ([#518](#518), [#509](#509)) - **WordPress table collations:** Default to `utf8mb4_unicode_520_ci` for new tables created with WordPress's charset settings, improving exports to MariaDB. Existing tables keep their recorded collation. ([#514](#514)) - **Documentation:** A new plugin README and expanded FAQ explain database storage and secure configuration. ([#520](#520)) For more information about database paths and secure configuration, read the [database storage guide](https://github.com/WordPress/sqlite-database-integration/blob/trunk/packages/plugin-sqlite-database-integration/README.md#database-storage). ## Upgrading to 3.1 Upgrading an existing SQLite site is straightforward: 1. **Back up** your SQLite database. 2. **Update the plugin** to version 3.1. Existing `.ht.sqlite` and `.ht.sqlite.php` databases move to the randomized layout automatically unless a database file path is explicitly configured. To properly **secure the database**, set `DB_PATH` in `wp-config.php` to an absolute file path outside the web root that your web server does not expose. Its directory must be writable by PHP. Changing `DB_PATH` does not move an existing database. ## Breaking changes Review these changes if you use custom database settings or integrations: - **Database paths:** Default database files now move to randomized paths under `wp-content/database/`. Explicitly configured file paths stay unchanged. Integrations, including backup and migration tools, must read `DB_PATH` after WordPress loads instead of assuming a fixed filename. - **Legacy constants:** `DB_DIR` and `DB_FILE` are now deprecated. They and the previously deprecated `FQDB` and `FQDBDIR` remain supported, but `DB_PATH` takes precedence. Conflicting values trigger warnings. - **Absolute paths:** Relative database file and directory paths are now rejected. `:memory:` remains available for in-memory databases. ## Thank you Thank you to everyone who contributed, tested, and helped update integrations. **Changes since 3.0.2:** [`v3.0.2...v3.1.0`](v3.0.2...v3.1.0) --- **PR comparison:** [`v3.0.2...release/v3.1.0`](v3.0.2...release/v3.1.0) ## Next steps 1. **Review** the release changes and changelog draft. 2. **Merge** this pull request to complete the release. Merging will automatically build the plugin ZIP, create a [GitHub release](https://github.com/WordPress/sqlite-database-integration/releases), and deploy to [WordPress.org](https://wordpress.org/plugins/sqlite-database-integration/).
1 parent 43f3988 commit 6546e45

3 files changed

Lines changed: 46 additions & 3 deletions

File tree

‎packages/mysql-on-sqlite/src/version.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
*
1010
* This constant needs to be updated on plugin release!
1111
*/
12-
define( 'SQLITE_DRIVER_VERSION', '3.0.2' );
12+
define( 'SQLITE_DRIVER_VERSION', '3.1.0' );

‎packages/plugin-sqlite-database-integration/load.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: SQLite Database Integration
44
* Description: SQLite database driver drop-in.
55
* Author: The WordPress Team
6-
* Version: 3.0.2
6+
* Version: 3.1.0
77
* Requires PHP: 7.2
88
* Network: true
99
* License: GPL-2.0-or-later

‎packages/plugin-sqlite-database-integration/readme.txt‎

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributors: wordpressdotorg, aristath, janjakes, zieladam, berislav.grgic
44
Requires at least: 6.4
55
Tested up to: 7.1
66
Requires PHP: 7.2
7-
Stable tag: 3.0.2
7+
Stable tag: 3.1.0
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: sqlite, database
@@ -91,6 +91,49 @@ Yes. The plugin replaces the default MySQL-based database layer with an SQLite-b
9191

9292
== Changelog ==
9393

94+
= 3.1.0 =
95+
96+
**SQLite Database Integration 3.1 is here! 🎉**
97+
98+
This release improves **database storage and configuration** and fixes several MySQL compatibility issues.
99+
100+
**What's new**
101+
102+
Version 3.1 improves how WordPress sites store, locate, and protect their SQLite databases. It also fixes SQL behavior and export compatibility:
103+
104+
* **Randomized database paths:** The default database location is now a randomized directory under `wp-content/database/`, recorded in `wp-content/database/db-path.php`. ([#502](https://github.com/WordPress/sqlite-database-integration/pull/502))
105+
* **`DB_PATH`:** Configure the database with one full-path constant, also available at runtime for integrations. ([#512](https://github.com/WordPress/sqlite-database-integration/pull/512))
106+
* **SQL compatibility:** Fix `IF()` condition evaluation and make `TRADITIONAL` enable its component SQL modes. ([#518](https://github.com/WordPress/sqlite-database-integration/pull/518), [#509](https://github.com/WordPress/sqlite-database-integration/pull/509))
107+
* **WordPress table collations:** Default to `utf8mb4_unicode_520_ci` for new tables created with WordPress's charset settings, improving exports to MariaDB. Existing tables keep their recorded collation. ([#514](https://github.com/WordPress/sqlite-database-integration/pull/514))
108+
* **Documentation:** A new plugin README and expanded FAQ explain database storage and secure configuration. ([#520](https://github.com/WordPress/sqlite-database-integration/pull/520))
109+
110+
For more information about database paths and secure configuration, read the [database storage guide](https://github.com/WordPress/sqlite-database-integration/blob/trunk/packages/plugin-sqlite-database-integration/README.md#database-storage).
111+
112+
**Upgrading to 3.1**
113+
114+
Upgrading an existing SQLite site is straightforward:
115+
116+
1. **Back up** your SQLite database.
117+
2. **Update the plugin** to version 3.1.
118+
119+
Existing `.ht.sqlite` and `.ht.sqlite.php` databases move to the randomized layout automatically unless a database file path is explicitly configured.
120+
121+
To properly **secure the database**, set `DB_PATH` in `wp-config.php` to an absolute file path outside the web root that your web server does not expose. Its directory must be writable by PHP. Changing `DB_PATH` does not move an existing database.
122+
123+
**Breaking changes**
124+
125+
Review these changes if you use custom database settings or integrations:
126+
127+
* **Database paths:** Default database files now move to randomized paths under `wp-content/database/`. Explicitly configured file paths stay unchanged. Integrations, including backup and migration tools, must read `DB_PATH` after WordPress loads instead of assuming a fixed filename.
128+
* **Legacy constants:** `DB_DIR` and `DB_FILE` are now deprecated. They and the previously deprecated `FQDB` and `FQDBDIR` remain supported, but `DB_PATH` takes precedence. Conflicting values trigger warnings.
129+
* **Absolute paths:** Relative database file and directory paths are now rejected. `:memory:` remains available for in-memory databases.
130+
131+
**Thank you**
132+
133+
Thank you to everyone who contributed, tested, and helped update integrations.
134+
135+
**Changes since 3.0.2:** [`v3.0.2...v3.1.0`](https://github.com/WordPress/sqlite-database-integration/compare/v3.0.2...v3.1.0)
136+
94137
= 3.0.2 =
95138

96139
* Fix schema reconstruction with native numeric results ([#506](https://github.com/WordPress/sqlite-database-integration/pull/506))

0 commit comments

Comments
 (0)