Skip to content

Commit 9e302b8

Browse files
Update src/Eloquent/HasSchemaVersion.php
Co-authored-by: Jérôme Tamarelle <[email protected]>
1 parent f406aea commit 9e302b8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## [4.6.0] - upcoming
4+
## [4.6.0] - 2024-07-09
55

6-
* Add `DocumentTrait` to use any 3rd party model with MongoDB @GromNaN in [#2580](https://github.com/mongodb/laravel-mongodb/pull/2580)
6+
* Add `DocumentModel` trait to use any 3rd party model with MongoDB @GromNaN in [#2580](https://github.com/mongodb/laravel-mongodb/pull/2580)
7+
* Add `HasSchemaVersion` trait to help implementing the [schema versioning pattern](https://www.mongodb.com/docs/manual/tutorial/model-data-for-schema-versioning/) @florianJacques in [#3021](https://github.com/mongodb/laravel-mongodb/pull/3021)
78
* Add support for Closure for Embed pagination @GromNaN in [#3027](https://github.com/mongodb/laravel-mongodb/pull/3027)
89

910
## [4.5.0] - 2024-06-20

src/Eloquent/HasSchemaVersion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
trait HasSchemaVersion
88
{
9-
public $currentSchemaVersion = 1;
9+
public int $currentSchemaVersion = 1;
1010

1111
/**
1212
* Auto call on model instance as booting

0 commit comments

Comments
 (0)