PHRAS-2161_coll-id-in-log-docs_MASTER

- explicit message when databox is failed to mount.
- reconnect db for long migration scripts
- mark (comment) doctrine "binary_strings" type so the upgrade is not done every time because the field was read-back as "varchar"
- proposal on long migration scripts (could be faster)
This commit is contained in:
Jean-Yves Gaulier
2018-08-16 10:07:40 +02:00
parent e94292a44c
commit f7b103af3d
4 changed files with 57 additions and 4 deletions

View File

@@ -81,8 +81,13 @@ class module_console_systemUpgrade extends Command
return $output->writeln(sprintf('<error>You have to fix your database before upgrade with the system:mailCheck command </error>'));
}
$queries = $this->getService('phraseanet.appbox')->forceUpgrade($upgrader, $this->container);
/** @var appbox $appBox */
$appBox = $this->getService('phraseanet.appbox');
$queries = $appBox->forceUpgrade($upgrader, $this->container);
/**
* todo (?) combine schema changes on a table as a simngle sql
* because on big tables like logs, adding 2 columns is 2 very long sql
*/
if ($input->getOption('dump') || $input->getOption('stderr')) {
if (0 < count($queries)) {
$output->writeln("Some SQL queries can be executed to optimize\n");