/** * See if the Migration tracking table exists. * * For a new install, this should always now exist because this is how new installs are made. * If we have a store that was originally <= 3.1.5, then we have to mark the migration * to catch it up. * * @return void */ protected function checkForMigrationTable() { $strQuery = "SHOW TABLES LIKE 'xlsws_migrations'"; $strResult = Yii::app()->db->createCommand($strQuery)->queryScalar(); //We don't have this table, meaning this is a recent upgrade but not a new install if ($strResult != "xlsws_migrations") { Yii::log("Forcing creation of migrations table", 'error', 'application.' . __CLASS__ . "." . __FUNCTION__); _runMigrationTool('upgrade'); } }
/** * Before we do anything else, write our config table to our params file for faster access */ protected function actionConvertStart() { $this->downloadTheme(); _runMigrationTool('set'); //mark db as m140411_120957_load_misc before google and amazon return array('result' => "success", 'makeline' => 2, 'tag' => 'Converting cart addresses', 'total' => 50); }