mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 02:54:26 +00:00
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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user