예제 #1
0
 /**
  * @param PerfORM $model
  * @param string $from
  */
 public function renameTable($model, $from)
 {
     if ($model->isTable()) {
         $template = $this->getTemplate('table-rename');
         $template->table = $this->getRenameTable($model, $from);
     } elseif ($model->isView()) {
         $template = $this->getTemplate('view-rename');
         $template->view = $this->getRenameView($model, $from);
     }
     $this->renderToBuffer($template, 'alters');
 }