PMCORE-631

This commit is contained in:
Paula Quispe
2020-04-09 17:45:04 -04:00
parent 795a52afd3
commit a3d4b65bf4
6 changed files with 76 additions and 157 deletions

View File

@@ -1,6 +1,8 @@
<?php
use Illuminate\Database\Eloquent\Model;
use Illuminate\Session\TokenMismatchException;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use ProcessMaker\Model\User;
@@ -586,3 +588,16 @@ function toSqlWithBindings(Illuminate\Database\Eloquent\Builder $queryObject) {
// Return query
return $query;
}
/**
* Get the version of the mysql
*
* @return string
*/
function getMysqlVersion()
{
$results = DB::select(DB::raw("select version()"));
$mysqlVersion = $results[0]->{'version()'};
return $mysqlVersion;
}