Skip to content

Latest commit

 

History

History
247 lines (136 loc) · 10.7 KB

CHANGELOG.md

File metadata and controls

247 lines (136 loc) · 10.7 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

7.0.1 (2024-04-24)

Bug Fixes

  • eloquent/models/concerns: Define the same property ($casts, $attributes) in HasSnakeCaseAttributes! (a959e86)

7.0.0 (2024-04-16)

BREAKING CHANGES:

  • Set minimum PHP version to ^8.3
  • Rename schema blueprint helper method userAudit to blamable
  • Rename schema blueprint helper method userAuditInclTimestamps to blamableInclTimestamps
  • Rename migration property dbm to databaseManager

Features

  • Add support for Laravel v11. (6860d35)
  • Add helper method rawColumn to blueprint.

6.1.0 (2023-12-12)

Features

  • Add support for Laravel v10. (3cdfb91)

6.0.0 (2023-01-30)

Features

5.2.1 (2022-08-29)

Bug Fixes

  • database/schema/blueprint: Define column "original_import_id" as string to be able to save uuid like ids. (ac4ef4c)

5.2.0 (2022-08-26)

Features

  • database/schema/blueprint: Add column "original_import_id" if the option "inclImportedBy" is set to true using the userAudit functions. (7b5513f)

5.1.1 (2022-07-26)

Bug Fixes

  • database/schema/blueprint: Add missing column definition for "imported_by". (f2114d9)

5.1.0 (2022-07-26)

Features

  • database/schema/blueprint: Add option to add "imported_by" and "imported_at" when using the userAudit functions. (1c44981)

Examples

$table->userAudit('users', 0, ['inclImportedBy' => true]);

or

$table->userAuditInclTimestamps('users', 0, ['inclImportedBy' => true]);

5.0.1 (2022-06-10)

Bug Fixes

  • database/schema/blueprint: Use correct parameter order for precision, when add soft deletes timestamps. (d4d8886)

5.0.0 (2022-05-31)

Features

  • schema/blueprint: Add option to include soft delete columns. (dc30dea)

BREAKING CHANGE(s)

  • The method parameters declaration of DMX\Support\Database\Schema::userAudit() has changed!
    • old: userAudit(string $referencedTo = 'users', array $referenceRestrictions = ['onUpdate' => 'no action', 'onDelete' => 'no action']): void
    • new: userAudit(string $referencedTo = 'users', array $options = []): void
  • The method parameters declaration of DMX\Support\Database\Schema::userAuditInclTimestamps() has changed!
    • old: userAuditInclTimestamps(string $referencedTo = 'users', int $precision = 0, array $referenceRestrictions = ['onUpdate' => 'no action', 'onDelete' => 'no action']): void
    • new: userAuditInclTimestamps(string $referencedTo = 'users', int $precision = 0, array $options = []): void

4.3.1 (2021-07-21)

Bug Fixes

  • eloquent/model/concerns: Use array_key_exists() instead of isset() to determine if data set in request, to be able to save fields set to null! (709f987)

4.3.0 (2021-07-16)

Features

  • database/blueprint: Make the user audit reference restrictions configurable. (0832864)

4.2.1 (2021-07-16)

Bug Fixes

  • database/schema: Use ANSI-SQL "no action" for on delete reference restrictions to be more compatible to MS SQL Server. (db5a51d)

4.2.0 (2021-07-14)

Features

  • database/migration: Add methods to create and drop database schemas if the driver supports it. (bed749d)

4.1.0 (2021-07-06)

Features

  • eloquent: Use optional schemas also with MSSQL databases. (71de35d)

4.0.1 (2021-07-06)

Bug Fixes

  • database/schema: Use Laravel's built-in methods to set the current timestamp instead of using a expression to make them more compatible to other database systems. (487c5d2)

4.0.0 (2021-06-22)

Features

  • eloquent: Add 2 new traits. (0e5a5b6)

BREAKING CHANGES

  • eloquent: Move trait HasSnakeCaseAttributes to \DMX\Support\Database\Eloquent\Models\Concerns. (e3ce4f74)

3.4.0 (2021-06-09)

Features

  • eloquent/models: Enhance the HasSnakeCaseAttributes trait. (f0b8080)

3.3.0 (2020-10-29)

Features

  • Add support for laravel framework 7.x and 8.x. (2d28091)

3.2.1 (2020-01-22)

Bug Fixes

  • model/concerns/DbSchema: Do not add the db schema twice to the table name! (3471869)

3.2.0 (2020-01-21)

Features

  • eloquent: Add optional schema name to table name if the database engine does not support db-schemas. (45d1581)

3.1.0 (2020-01-17)

Features

  • database/schema: Enhance the blueprint and provide methods to columns used for user audit. (96cc4d5)

3.0.0 (2020-01-17)

  • *: Move the package to PHP 7.4.

2.3.0 (2019-10-31)

Features

  • database/eloquent: Add trait to add a optional schema name property to a model. (9d60f15)

2.2.1 (2019-10-30)

Bug Fixes

  • database/migrations: Throw the exception correctly only if no database manager is set and no Laravel helper functions are available. (74010d5)

2.2.0 (2019-10-30)

Features

  • database: Add lightly adopted Laravel based migration and blueprint classes. (83cb5f1)

2.1.1 (2019-10-25)

Bug Fixes

  • database: Remove misplaced migration and blueprint classes. (05d6d64)

2.1.0 (2019-10-25)

Features

  • database: Add lightly adopted (Laravel)migration base class and (Laravel)blueprint. (f57443e)

2.0.0 (2019-09-09)

Features

  • *: Move package to support laravel 6.0.

1.1.3 (2019-09-09)

Fixes

  • *: Remove support for laravel 6.0, cause of an deprecated function issue.

1.1.2 (2019-09-09)

Chore

  • *: Dependencies updated to support laravel 6.0.

1.1.1 (2019-06-06)

Fixes

  • traits: Check for an potentially existing method defined within the model before snake case the designated attribute (getAttribute()).

1.1.0 (2018-09-10)

Features

  • traits: add HasSnakeCaseAttributes to use within Eloquent models
    • overloads getAttribute() and setAttribute() to use snake case attribute names
      • Example:
        • Field in the database: "my_awesome_field"
        • Use on model: $myModel->myAwesomeField

Refactor

  • traits: rename ProvidesIdentifierTrait to ProvidesIdentifier

1.0.0 (2018-06-21)

Features

  • traits: add ProvidesIdentifierTrait
    • Add basic methods to handle text based identifiers like UUID
      • $obj->identifier() ... returns the identifier saved within the object