protected function getExecutedScriptsStoragePath() { $dir = Application::getVarDirectory() . '/deploy'; $dir_abs = Application::getSitePath() . $dir; if (!is_dir($dir_abs)) { if (!@mkdir($dir_abs, 0777, true)) { throw new coreException("Can't create dir {$dir_abs}", CORE_DIRECTORY_CREATION_FAILED); } } return $dir_abs . '/sql_scripts_executed'; }