diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-10 21:29:09 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-11 11:45:00 +0100 |
commit | 77713ab454f7edb99502cc706b6b08b32d8fa177 (patch) | |
tree | 5c694a599ca3ac89b5e47bee512ca42a452d2121 /lib/private/DB/MigrationService.php | |
parent | dde0e73c6b64194031db3203f921e8bdc0cb829d (diff) | |
download | nextcloud-server-77713ab454f7edb99502cc706b6b08b32d8fa177.tar.gz nextcloud-server-77713ab454f7edb99502cc706b6b08b32d8fa177.zip |
Don't create a schema to check if the migrations table exists
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/DB/MigrationService.php')
-rw-r--r-- | lib/private/DB/MigrationService.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index 138d7703597..9c94cbc61fa 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -124,6 +124,11 @@ class MigrationService { return false; } + if ($this->connection->tableExists('migrations')) { + $this->migrationTableCreated = true; + return false; + } + $schema = new SchemaWrapper($this->connection); /** |