We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7e9a6 commit 5d2c793Copy full SHA for 5d2c793
README.md
@@ -10,7 +10,7 @@ Install using composer.
10
```json
11
{
12
"require": {
13
- "tarantool/mapper": "2.2.0"
+ "tarantool/mapper": "^2.2.2"
14
}
15
16
```
src/Bootstrap.php
@@ -19,11 +19,14 @@ public function register($instance)
19
20
public function migrate()
21
22
+ $schema = $this->mapper->getSchema();
23
foreach($this->migrations as $migration) {
24
if(!is_object($migration)) {
25
$migration = new $migration;
26
- $migration->migrate($this->mapper);
27
+ $schema->once(get_class($migration), function() use ($migration) {
28
+ $migration->migrate($this->mapper);
29
+ });
30
31
32
0 commit comments