Releases: bolt-php/core
Release list
[v1.2.3] Removed type hinting for validation
Merge pull request #17 from bolt-php/module-support Removed type hinting for validation
[v1.2.2] Removed type hinting for validation
Merge pull request #16 from bolt-php/module-support Added support for module handling
[v1.2.1] Extended model from std class
Merge pull request #16 from bolt-php/module-support Added support for module handling
[v1.2.0] Module Support
This feature adds support for modules
[v1.1.4] Bug fixes within ActiveRecord
What's Changed
- Fixed a bug that caused a crash if no record existed against
find. - Added a
limitmethod to fetch specified number of records
[1.1.3] Environment Bug Fixes
Multiple changes are being made from this release, notable ones are listed below:
Versioning Structure
We have completely dropped the patch version (1.0.0.1), instead, we shall only use versions till minor to clarify version constraints and simply management.
Bug Fixes
A number of bugs have been addressed, notable ones being listed below:
- Fixed a bug resulting in
ActiveModelfailing to select data firstnow returns an object instead of array- Fixed a bug where leading slash within path will be stripped on Linux environments, leading to system crashes
Improved coverage, modified fill and bug fixes
The release makes 3 major changes:
Model::fill
The Model::fill method previously ignored any empty values, thus preventing us from clearing values of fields.
Now, the method uses isset for most values, allowing you to update models partially. If a file isn't uploaded during edit, it would use the older file, thus ensuring "leave-blank" functionality.
Bug Fixes
• Fixed table exists for SQLite driver
• Fixed a bug resulting in duplicate component initialization
Improved Coverage
Tests added for SQLite, MySQL and other components, significantly improving coverage and reliabitliy.
Addition of migrations
Migrations allow you to version control your database schema. You can create a migration file using the make:migration command.
Example:
php tiny make:migration create_products_tableExample Migration
Here's an example that creates a migration for a products table:
<?php
namespace app\migrations;
class CreateProductsTable
{
public function up()
{
$tableCmd = db()->createTable('products');
$tableCmd->id();
$tableCmd->string('title');
$tableCmd->string('image');
$tableCmd->timestamps();
$tableCmd->execute();
}
public function down()
{
db()->dropTable('products');
}
}Executing Migration
Finally, you can apply the migration using migrate command.
php tiny migrateAddition of transformer support
Transformers allow extending models with custom types. They are used to facilitate file uploading and handling date times.
Addition of FileSystem component
This update adds a new FileSystem component. The component is required for upcoming file uploading support.