@@ -127,7 +127,7 @@ |
||
127 | 127 | $table->addColumn(new Text('value')); |
128 | 128 | $table->addColumn(new Varchar('context', 255)); |
129 | 129 | $table->addConstraint( |
130 | - new UniqueKey(['path','context'], 'configuration_uniqueness_index') |
|
130 | + new UniqueKey(['path','context'], 'configuration_uniqueness_index') |
|
131 | 131 | ); |
132 | 132 | |
133 | 133 | $sql = new Sql($this->adapter); |
@@ -51,9 +51,10 @@ |
||
51 | 51 | $manager = $factory->getManager(); |
52 | 52 | $contexts = $factory->getContextFile()->getContexts(); |
53 | 53 | $context = $input->getArgument('context'); |
54 | - if ($context) |
|
55 | - if (in_array($context, $contexts)) { |
|
54 | + if ($context) { |
|
55 | + if (in_array($context, $contexts)) { |
|
56 | 56 | $contexts = [$context]; |
57 | + } |
|
57 | 58 | } else { |
58 | 59 | throw new InvalidContextException('Context does not exist: ' . $context); |
59 | 60 | } |