Commit 24be4e3d authored by Guilherme Blanco's avatar Guilherme Blanco

Moved back methods

parent 5d300851
...@@ -963,19 +963,6 @@ class Table extends AbstractAsset ...@@ -963,19 +963,6 @@ class Table extends AbstractAsset
} }
} }
public function setComment(?string $comment) : self
{
// For keeping backward compatibility with MySQL in previous releases, table comments are stored as options.
$this->addOption('comment', $comment);
return $this;
}
public function getComment() : ?string
{
return $this->_options['comment'] ?? null;
}
/** /**
* @param string[] $columnNames * @param string[] $columnNames
* @param string[] $flags * @param string[] $flags
...@@ -1017,4 +1004,17 @@ class Table extends AbstractAsset ...@@ -1017,4 +1004,17 @@ class Table extends AbstractAsset
return $this->trimQuotes(strtolower($identifier)); return $this->trimQuotes(strtolower($identifier));
} }
public function setComment(?string $comment) : self
{
// For keeping backward compatibility with MySQL in previous releases, table comments are stored as options.
$this->addOption('comment', $comment);
return $this;
}
public function getComment() : ?string
{
return $this->_options['comment'] ?? null;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment