コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
ファイル: Drop.php プロジェクト: hientruong90/ee_14_installer
 /**
  * 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;
 }