use metadata constant
This commit is contained in:
parent
e2555e2448
commit
51cbc653af
|
@ -229,7 +229,7 @@ abstract class Worker
|
||||||
throw new \Exception("Project does not exist: {$projectId}");
|
throw new \Exception("Project does not exist: {$projectId}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($type === self::DATABASE_CONSOLE && !$database->exists($database->getDefaultDatabase(), '_metadata')) {
|
if ($type === self::DATABASE_CONSOLE && !$database->exists($database->getDefaultDatabase(), Database::METADATA)) {
|
||||||
throw new \Exception('Console project not ready');
|
throw new \Exception('Console project not ready');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue