Skip to content

Commit 44fd1fe

Browse files
Update src/Eloquent/HasSchemaVersion.php
Co-authored-by: Jérôme Tamarelle <jerome@tamarelle.net>
1 parent 0d580e9 commit 44fd1fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ All notable changes to this project will be documented in this file.
33

44
## [4.6.0] - upcoming
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

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

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)