/** * Validates and creates changelog table with 2 columns. * Updates changelog_name in the metadata. * * @return Enterprise_Mview_Model_Action_Changelog_Create */ public function execute() { $this->validate(); if (!$this->_changelog->isExists()) { $this->_createChangelogTable(); } $this->_metadata->setData('changelog_name', $this->_getChangelogName())->save(); return $this; }
/** * Drops changelog table * Updates changelog_name in the metadata. * * @return Enterprise_Mview_Model_Action_Changelog_Create */ public function execute() { $this->_changelog->drop(); $this->_metadata->setData('changelog_name', null)->save(); return $this; }