Skip to content

Releases: calebporzio/sushi

v2.1.0

06 Sep 03:34
39a7362
Compare
Choose a tag to compare

Added

  • Support for Laravel 8.x

v2.0.0

04 Mar 02:55
Compare
Choose a tag to compare

Added

  • Made columns nullable by default
  • Added auto-detecting of column types: integer, float, datetime, string
  • Allow for a custom schema with $schema property or getSchema 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

15 Feb 17:03
Compare
Choose a tag to compare
Support Laravel 7

v1.1.1

14 Feb 01:54
Compare
Choose a tag to compare

Fixed

  • Default $timestamp property behavior.

v1.1.0

14 Feb 00:22
Compare
Choose a tag to compare

Added

  • Auto-add $table->timestamps() to the migration if public $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

06 Feb 17:42
Compare
Choose a tag to compare

Fixed

  • There was an issue with duplicate keys when you include an "id" column in your $rows array.

v1.0.3

06 Feb 17:17
Compare
Choose a tag to compare

Added

  • Support for just using ->getRows() instead of the hardcoded $rows property.

v1.0.2

04 Feb 04:16
cb0ba06
Compare
Choose a tag to compare

Added

  • Allow for configurable cache prefix config('sushi.cache-prefix', 'sushi') #20

Fixed

  • Honor $primaryKey model property #24
  • CI tests #25

v1.0.1

28 Jan 14:03
Compare
Choose a tag to compare

Fixed

  • Added "orchestra/testbench" to require-dev instead of require in composer.json

v1.0.0

25 Jan 15:01
Compare
Choose a tag to compare
wip