Releases: calebporzio/sushi
Releases · calebporzio/sushi
v2.1.0
Added
- Support for Laravel 8.x
v2.0.0
Added
- Made columns nullable by default
- Added auto-detecting of column types:
integer
,float
,datetime
,string
- Allow for a custom schema with
$schema
property orgetSchema
function:
class ModelWithCustomSchema extends Model
{
use \Sushi\Sushi;
protected $rows = [[
'string_int' => '123',
]];
protected $schema = [
'string_int' => 'integer',
];
}
(Now the $model->string_int
will be an integer instead of a string)
v1.1.2
Support Laravel 7
v1.1.1
Fixed
- Default
$timestamp
property behavior.
v1.1.0
Added
- Auto-add
$table->timestamps()
to the migration ifpublic $timestamps = true
, otherwise don't
Fixed
- Instead of invalidating the cache if the file modified time of the sqlite db and the model file MATCH, only invalidate if the model file time is AHEAD of the cache. (this way you can modify the sqlite database if you want temporarily (mainly for demoing purposes))
v1.0.4
Fixed
- There was an issue with duplicate keys when you include an "id" column in your $rows array.
v1.0.3
Added
- Support for just using
->getRows()
instead of the hardcoded$rows
property.
v1.0.2
v1.0.1
Fixed
- Added "orchestra/testbench" to require-dev instead of require in
composer.json
v1.0.0
wip