aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Migration/Attributes/ModifyColumn.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Migration/Attributes/ModifyColumn.php')
-rw-r--r--lib/public/Migration/Attributes/ModifyColumn.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/public/Migration/Attributes/ModifyColumn.php b/lib/public/Migration/Attributes/ModifyColumn.php
index 216a911d90f..ef7250ffb34 100644
--- a/lib/public/Migration/Attributes/ModifyColumn.php
+++ b/lib/public/Migration/Attributes/ModifyColumn.php
@@ -11,6 +11,8 @@ namespace OCP\Migration\Attributes;
use Attribute;
/**
+ * attribute on column modification
+ *
* @since 30.0.0
*/
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS)]
@@ -21,9 +23,8 @@ class ModifyColumn extends ColumnMigrationAttribute {
*/
public function definition(): string {
$type = is_null($this->getType()) ? '' : ' to ' . $this->getType()->value;
- $table = empty($this->getTable()) ? '' : ' from table \'' . $this->getTable() . '\'';
return empty($this->getName()) ?
- 'Modification of a column' . $table . $type
- : 'Modification of column \'' . $this->getName() . '\'' . $table . $type;
+ 'Modification of a column from table \'' . $this->getTable() . '\'' . $type
+ : 'Modification of column \'' . $this->getName() . '\' from table \'' . $this->getTable() . '\'' . $type;
}
}