4
0
Fork 0

Extension Update No Transation

master
panliang 2022-07-26 17:45:28 +08:00
parent 26e3a035c6
commit c5f44ef92d
2 changed files with 14 additions and 15 deletions

View File

@ -87,7 +87,6 @@ class UpdateManager
$this->note($name); $this->note($name);
$this->versionUpdate($extension, $stopOnVersion); $this->versionUpdate($extension, $stopOnVersion);
$this->publish($name); $this->publish($name);
return $this; return $this;

View File

@ -32,7 +32,6 @@ class DatabaseUpdater
Model::unguard(); Model::unguard();
$this->transaction(function () use ($object, $callback) {
if ($object instanceof Migration) { if ($object instanceof Migration) {
$object->up(); $object->up();
} elseif ($object instanceof Seeder) { } elseif ($object instanceof Seeder) {
@ -40,7 +39,8 @@ class DatabaseUpdater
} }
$callback && $callback(); $callback && $callback();
}); // $this->transaction(function () use ($object, $callback) {
// });
Model::reguard(); Model::reguard();
@ -62,13 +62,13 @@ class DatabaseUpdater
Model::unguard(); Model::unguard();
$this->transaction(function () use ($object, $callback) {
if ($object instanceof Migration) { if ($object instanceof Migration) {
$object->down(); $object->down();
} }
$callback && $callback(); $callback && $callback();
}); // $this->transaction(function () use ($object, $callback) {
// });
Model::reguard(); Model::reguard();