v2.0.11
Eloquent now works on WordPress running on SQLite.
Eloquent
- When WordPress runs on SQLite, Eloquent connects to the same SQLite file (the one
FQDBpoints at). That covers WordPress Playground, WordPress Studio and any site with the SQLite Database Integration plugin. Up to 2.0.10 Eloquent always opened a MySQL connection fromDB_HOST,DB_NAME,DB_USERandDB_PASSWORD, so on those sites every Eloquent query failed. On playground.wordpress.net, every example on the Database demo's Eloquent ORM page threw (#110, #113). - The WordPress tables keep their names on SQLite, so models work unchanged, and what Eloquent writes is what
$wpdbreads. On SQLite, create tables through WordPress (a WP Bones migration ordbDelta()): a table made with Eloquent's schema builder can be queried, but WordPress doesn't list it. - MySQL sites get exactly the connection they had before.
Upgrading
Drop-in for 2.0.x: composer update wpbones/wpbones.
Full Changelog: v2.0.10...v2.0.11