30 extends Zend_Validate_Abstract
32 const NAME_EMPTY =
'indexNameEmpty';
33 const RENAME =
'indexRename';
38 protected $_messageTemplates = array(
39 self::NAME_EMPTY =>
"Index name can not be empty",
40 self::RENAME =>
"Cannot change name of existing index"
54 $value = $schema->getName();
57 $this->_error(self::NAME_EMPTY);
60 if ($schema && $schema->isDirty(
'name')) {
61 if ($schema->isExist()) {
62 $this->_error(self::RENAME, $value);